Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add order forms

Michal Ociepkafda3c23db102
diff --git a/order/forms.py b/order/forms.py
new file mode 100644
index 0000000000..70b6cb35a7
--- /dev/null
+++ b/order/forms.py
@@ -0,0 +1,17 @@
+from django import forms
+from userprofile.forms import AddressForm
+
+
+class ShippingForm(AddressForm):
+
+ use_billing = forms.BooleanField(initial=True)
+
+
+class ManagementForm(forms.Form):
+
+ CHOICES = (
+ ('select', 'Select address'),
+ ('new', 'Add new address')
+ )
+
+ choice_method = forms.ChoiceField(choices=CHOICES)