Indentation
This commit is contained in:
		
							parent
							
								
									320f6ab6eb
								
							
						
					
					
						commit
						ea7a8d9ae7
					
				
					 1 changed files with 18 additions and 18 deletions
				
			
		|  | @ -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(): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer