summaryrefslogtreecommitdiff
path: root/app/budget/views.py
blob: 3743eaf90e011471a7893febd41ef0dc21958c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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