Flake8 fixes for reports
This commit is contained in:
parent
cb50f2a3be
commit
f0730b4de9
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@ from django import forms
|
|||
|
||||
# Staff-facing forms.
|
||||
|
||||
|
||||
class ProductAndCategoryForm(forms.Form):
|
||||
product = forms.ModelMultipleChoiceField(
|
||||
queryset=inventory.Product.objects.all(),
|
||||
|
|
|
@ -120,7 +120,9 @@ class QuerysetReport(BasicReport):
|
|||
|
||||
def __init__(self, title, attributes, queryset, headings=None,
|
||||
link_view=None):
|
||||
super(QuerysetReport, self).__init__(title, headings, link_view=link_view)
|
||||
super(QuerysetReport, self).__init__(
|
||||
title, headings, link_view=link_view
|
||||
)
|
||||
self._attributes = attributes
|
||||
self._queryset = queryset
|
||||
|
||||
|
@ -178,6 +180,7 @@ class Links(Report):
|
|||
self._linked_text(content_type, url, link_text)
|
||||
]
|
||||
|
||||
|
||||
def report_view(title, form_type=None):
|
||||
''' Decorator that converts a report view function into something that
|
||||
displays a Report.
|
||||
|
|
Loading…
Reference in a new issue