]> err.no Git - peojumk/blob - invoice/forms.py
Make it possible to find the sum of an invoice
[peojumk] / invoice / forms.py
1 from django.forms import ModelForm
2 from invoice.models import Client, Invoice
3 from django.views.generic.edit import ModelFormMixin
4
5 class ClientForm(ModelFormMixin, ModelForm):
6     class Meta:
7         model = Client
8
9 class InvoiceForm(ModelFormMixin, ModelForm):
10     class Meta:
11         model = Invoice