Work on the register UI
This commit is contained in:
1 parent
7a15006455
commit
135fe821e1
16 files changed
+290
-167
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user