Zrušen VložBodyView
Stejně nic moc nedělal...
This commit is contained in:
		
							parent
							
								
									a8f91e1222
								
							
						
					
					
						commit
						c77eb932f8
					
				
					 2 changed files with 0 additions and 19 deletions
				
			
		|  | @ -123,11 +123,6 @@ urlpatterns = [ | ||||||
| 		org_required(views.soustredeniObalkyView), | 		org_required(views.soustredeniObalkyView), | ||||||
| 		name='seminar_soustredeni_obalky' | 		name='seminar_soustredeni_obalky' | ||||||
| 	), | 	), | ||||||
| 	path( |  | ||||||
| 		'org/vloz_body/<int:tema>/', |  | ||||||
| 		org_required(views.VlozBodyView.as_view()), |  | ||||||
| 		name='seminar_org_vlozbody' |  | ||||||
| 	), |  | ||||||
| 	# příprava na nestatický orgorozcestník | 	# příprava na nestatický orgorozcestník | ||||||
| 	path( | 	path( | ||||||
| 		'org/rozcestnik/', | 		'org/rozcestnik/', | ||||||
|  |  | ||||||
|  | @ -63,20 +63,6 @@ from seminar.utils import aktivniResitele, resi_v_rocniku | ||||||
| def get_problemy_k_tematu(tema): | def get_problemy_k_tematu(tema): | ||||||
| 	return Problem.objects.filter(nadproblem = tema) | 	return Problem.objects.filter(nadproblem = tema) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| class VlozBodyView(generic.ListView): |  | ||||||
| 	template_name = 'seminar/org/vloz_body.html' |  | ||||||
| 
 |  | ||||||
| 	def get_queryset(self): |  | ||||||
| 		self.tema = get_object_or_404(Problem,id=self.kwargs['tema']) |  | ||||||
| 		print(self.tema) |  | ||||||
| 		self.problemy = Problem.objects.filter(nadproblem = self.tema) |  | ||||||
| 		print(self.problemy) |  | ||||||
| 		self.reseni = Reseni.objects.filter(problem__in=self.problemy)	 |  | ||||||
| 		print(self.reseni) |  | ||||||
| 		return self.reseni |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| class ObalkovaniView(generic.ListView): | class ObalkovaniView(generic.ListView): | ||||||
| 	template_name = 'seminar/org/obalkovani.html' | 	template_name = 'seminar/org/obalkovani.html' | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky