fix: odměny mají házet alespoň 404 na špatné číslo
This commit is contained in:
		
							parent
							
								
									ea7075f707
								
							
						
					
					
						commit
						72b72899fd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -442,8 +442,8 @@ class OdmenyView(generic.TemplateView): | |||
| 
 | ||||
| 	def get_context_data(self, **kwargs): | ||||
| 		context = super().get_context_data(**kwargs) | ||||
| 		fromcislo = Cislo.objects.get(rocnik=self.kwargs.get('frocnik'), poradi=self.kwargs.get('fcislo')) | ||||
| 		tocislo = Cislo.objects.get(rocnik=self.kwargs.get('trocnik'), poradi=self.kwargs.get('tcislo')) | ||||
| 		fromcislo = get_object_or_404(Cislo, rocnik=self.kwargs.get('frocnik'), poradi=self.kwargs.get('fcislo')) | ||||
| 		tocislo = get_object_or_404(Cislo, rocnik=self.kwargs.get('trocnik'), poradi=self.kwargs.get('tcislo')) | ||||
| 		resitele = aktivniResitele(tocislo) | ||||
| 
 | ||||
| 		def get_diff(from_deadline: Deadline, to_deadline: Deadline): | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue