2016-09-02 04:33:23 +00:00
|
|
|
from registrasion.models import inventory
|
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
|
|
|
# Staff-facing forms.
|
|
|
|
|
2016-09-13 08:54:28 +00:00
|
|
|
|
2016-09-02 04:33:23 +00:00
|
|
|
class ProductAndCategoryForm(forms.Form):
|
|
|
|
product = forms.ModelMultipleChoiceField(
|
|
|
|
queryset=inventory.Product.objects.all(),
|
|
|
|
required=False,
|
|
|
|
)
|
|
|
|
category = forms.ModelMultipleChoiceField(
|
|
|
|
queryset=inventory.Category.objects.all(),
|
|
|
|
required=False,
|
|
|
|
)
|
2016-09-02 05:15:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
class UserIdForm(forms.Form):
|
|
|
|
user = forms.IntegerField(
|
|
|
|
label="User ID",
|
|
|
|
required=False,
|
|
|
|
)
|