Work on the register UI

This commit is contained in:
nikolark committed 2012-01-07 03:36:12 +01:00
1 parent 7a15006455
commit 135fe821e1
16 files changed
+290 -167

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
from django import forms
from models import *
class OrderForm(forms.Form):
pass
class OrderLineForm(forms.ModelForm):
#product = forms.CharField(required=True, widget=forms.HiddenInput)
#amount = forms.IntegerField(required=True)
class Meta:
model = OrderLine
fields = ('amount','product')
widgets = {
'product': forms.HiddenInput(),
'amount': forms.TextInput(attrs={'size': '2'}),
}
# TODO : Validation