Source

django-pim / pcbank / forms.py

Full commit
Kevin Veroneau fffb63b 











Kevin Veroneau 67cecd3 



from django import forms
from pcbank.models import Bill, Cheque

class NewBillForm(forms.ModelForm):
    class Meta:
        model = Bill
        fields = ('amount',)

class NewChequeForm(forms.ModelForm):
    class Meta:
        model = Cheque
        exclude = ('transaction',)

class UploadChequeForm(forms.ModelForm):
    class Meta:
        model = Cheque
        fields = ('image',)