Moves reports forms into reporting sub package

This commit is contained in:
Christopher Neugebauer 2016-09-02 14:33:23 +10:00
parent 64ca477cb8
commit 25608b1653
3 changed files with 17 additions and 14 deletions

View file

@ -347,16 +347,3 @@ class VoucherForm(forms.Form):
help_text="If you have a voucher code, enter it here",
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,
)

View 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,
)

View file

@ -1,3 +1,5 @@
import forms
from django.contrib.auth.decorators import user_passes_test
from django.core.urlresolvers import reverse
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.shortcuts import render
from registrasion import forms
from registrasion.models import commerce
from registrasion import views