Indentation

This commit is contained in:
Christopher Neugebauer 2016-10-14 10:28:38 -07:00
parent 320f6ab6eb
commit ea7a8d9ae7

View file

@ -220,29 +220,29 @@ class ReportView(object):
self.form_type = form_type self.form_type = form_type
def render(self, *a, **k): def render(self, *a, **k):
if self.form_type is not None: if self.form_type is not None:
form = self.form_type(self.request.GET) form = self.form_type(self.request.GET)
form.is_valid() form.is_valid()
else: else:
form = None form = None
reports = self.view(self.request, form, *a, **k) reports = self.view(self.request, form, *a, **k)
if isinstance(reports, Report): if isinstance(reports, Report):
reports = [reports] reports = [reports]
reports = [ reports = [
_ReportTemplateWrapper("text/html", report) _ReportTemplateWrapper("text/html", report)
for report in reports for report in reports
] ]
ctx = { ctx = {
"title": self.title, "title": self.title,
"form": form, "form": form,
"reports": reports, "reports": reports,
} }
return render(self.request, "registrasion/report.html", ctx) return render(self.request, "registrasion/report.html", ctx)
def get_all_reports(): def get_all_reports():