Success URL pro zadání bodů
This commit is contained in:
		
							parent
							
								
									b91e639089
								
							
						
					
					
						commit
						64d3701d0f
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -158,6 +158,10 @@ class HodnoceniReseniView(SingleObjectMixin, FormView): | |||
| 	template_name = 'seminar/odevzdavatko/detail.html' | ||||
| 	form_class = f.OhodnoceniReseniFormSet | ||||
| 
 | ||||
| 	def get_success_url(self): | ||||
| 		# Funkce to je jen proto, aby se dalo použít self. | ||||
| 		return reverse('odevzdavatko_detail_reseni', kwargs={'pk': self.kwargs['pk']}) | ||||
| 
 | ||||
| 	def form_vaild(self, form): | ||||
| 		... | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky