diff options
Diffstat (limited to 'app/budget/views.py')
-rw-r--r-- | app/budget/views.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/budget/views.py b/app/budget/views.py new file mode 100644 index 0000000..3743eaf --- /dev/null +++ b/app/budget/views.py @@ -0,0 +1,13 @@ +from django.shortcuts import render +from django.views.generic.edit import CreateView, UpdateView +from utils.views import PaginatedListView +from .models import LuxPurchase + +class PurchaseModelFormView(CreateView): + model = LuxPurchase + fields = ['amount', 'source', 'category'] + success_url = '/spending/' + template_name = 'budget/create_form.html' + +class LuxPurchaseListView(PaginatedListView): + pass |