diff --git a/nummi/account/urls.py b/nummi/account/urls.py index 43bc302..b46816f 100644 --- a/nummi/account/urls.py +++ b/nummi/account/urls.py @@ -5,7 +5,7 @@ from transaction.views import TransactionMonthView from . import views urlpatterns = [ - path("", views.AccountCreateView.as_view(), name="new_account"), + path("new", views.AccountCreateView.as_view(), name="new_account"), path("", views.AccountUpdateView.as_view(), name="account"), path( "/transactions", diff --git a/nummi/category/urls.py b/nummi/category/urls.py index 3d72bca..4809677 100644 --- a/nummi/category/urls.py +++ b/nummi/category/urls.py @@ -4,7 +4,7 @@ from transaction.views import TransactionMonthView from . import views urlpatterns = [ - path("", views.CategoryCreateView.as_view(), name="new_category"), + path("new", views.CategoryCreateView.as_view(), name="new_category"), path("", views.CategoryUpdateView.as_view(), name="category"), path( "/transactions", diff --git a/nummi/search/urls.py b/nummi/search/urls.py index fb383ab..bec1649 100644 --- a/nummi/search/urls.py +++ b/nummi/search/urls.py @@ -3,6 +3,6 @@ from django.urls import path from . import views urlpatterns = [ - path("search", views.SearchFormView.as_view(), name="search"), - path("search/", views.SearchView.as_view(), name="search"), + path("", views.SearchFormView.as_view(), name="search"), + path("", views.SearchView.as_view(), name="search"), ] diff --git a/nummi/transaction/views.py b/nummi/transaction/views.py index e30825b..0a54fc7 100644 --- a/nummi/transaction/views.py +++ b/nummi/transaction/views.py @@ -115,9 +115,6 @@ class TransactionMonthView(UserMixin, MonthArchiveView): context_object_name = "transactions" month_format = "%m" - account = None - category = None - def get_queryset(self): if "account" in self.kwargs: self.account = get_object_or_404(