diff options
Diffstat (limited to 'app/budget/views.py')
-rw-r--r-- | app/budget/views.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/budget/views.py b/app/budget/views.py index 906450c..4a2ab74 100644 --- a/app/budget/views.py +++ b/app/budget/views.py @@ -3,7 +3,14 @@ from django.shortcuts import render from django.views.generic.edit import CreateView, UpdateView from django.utils import timezone from utils.views import PaginatedListView -from .models import LuxPurchase +from .models import LuxPurchase, LuxSource + +class LuxSourceModelFormView(CreateView): + model = LuxSource + fields = ['name'] + success_url = '/spending/' + template_name = 'budget/create_cat_form.html' + class PurchaseModelFormView(CreateView): model = LuxPurchase |