Moves reports forms into reporting sub package
This commit is contained in:
parent
64ca477cb8
commit
25608b1653
3 changed files with 17 additions and 14 deletions
|
@ -347,16 +347,3 @@ class VoucherForm(forms.Form):
|
||||||
help_text="If you have a voucher code, enter it here",
|
help_text="If you have a voucher code, enter it here",
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Staff-facing forms.
|
|
||||||
|
|
||||||
class ProductAndCategoryForm(forms.Form):
|
|
||||||
product = forms.ModelMultipleChoiceField(
|
|
||||||
queryset=inventory.Product.objects.all(),
|
|
||||||
required=False,
|
|
||||||
)
|
|
||||||
category = forms.ModelMultipleChoiceField(
|
|
||||||
queryset=inventory.Category.objects.all(),
|
|
||||||
required=False,
|
|
||||||
)
|
|
||||||
|
|
15
registrasion/reporting/forms.py
Normal file
15
registrasion/reporting/forms.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
from registrasion.models import inventory
|
||||||
|
|
||||||
|
from django import forms
|
||||||
|
|
||||||
|
# Staff-facing forms.
|
||||||
|
|
||||||
|
class ProductAndCategoryForm(forms.Form):
|
||||||
|
product = forms.ModelMultipleChoiceField(
|
||||||
|
queryset=inventory.Product.objects.all(),
|
||||||
|
required=False,
|
||||||
|
)
|
||||||
|
category = forms.ModelMultipleChoiceField(
|
||||||
|
queryset=inventory.Category.objects.all(),
|
||||||
|
required=False,
|
||||||
|
)
|
|
@ -1,3 +1,5 @@
|
||||||
|
import forms
|
||||||
|
|
||||||
from django.contrib.auth.decorators import user_passes_test
|
from django.contrib.auth.decorators import user_passes_test
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
@ -6,7 +8,6 @@ from django.db.models import Sum
|
||||||
from django.db.models import Case, When, Value
|
from django.db.models import Case, When, Value
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
from registrasion import forms
|
|
||||||
from registrasion.models import commerce
|
from registrasion.models import commerce
|
||||||
from registrasion import views
|
from registrasion import views
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue