12 lines
214 B
Python
12 lines
214 B
Python
from django import forms
|
|
from .models import Order
|
|
|
|
|
|
class CheckoutForm(forms.Form):
|
|
# no fields here, just three submit buttons
|
|
pass
|
|
|
|
class AddToOrderForm(forms.Form):
|
|
quantity = forms.IntegerField()
|
|
|