first commit
This commit is contained in:
11
cart/forms.py
Normal file
11
cart/forms.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django import forms
|
||||
|
||||
PRODUCT_QUANTITY_CHOICES = [(i, str(i)) for i in range(1, 21)]
|
||||
|
||||
class CartAddProductForm(forms.Form):
|
||||
quantity = forms.TypedChoiceField(
|
||||
choices=PRODUCT_QUANTITY_CHOICES,
|
||||
coerce=int)
|
||||
override = forms.BooleanField(required=False,
|
||||
initial=False,
|
||||
widget=forms.HiddenInput)
|
||||
Reference in New Issue
Block a user