U CSRF chyby má být reason asi předvyplněný
This commit is contained in:
		
							parent
							
								
									205409abc5
								
							
						
					
					
						commit
						b69ebcd6b6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -4,8 +4,8 @@ from django.shortcuts import render | |||
| # Create your views here. | ||||
| 
 | ||||
| 
 | ||||
| def csrf_error(request, reason): | ||||
| 	""" Jednoduchý „template_view“ (třída to být nemůže) pro CSRF chyby """ | ||||
| def csrf_error(request, reason=""): | ||||
| 	""" Jednoduchý „template view“ (třída to být nemůže) pro CSRF chyby """ | ||||
| 	return render( | ||||
| 		request, 'various/403_csrf.html', | ||||
| 		{"url": request.META["HTTP_REFERER"], "reason": reason}, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue