Přejmenování odlišně pojmenované url
This commit is contained in:
		
							parent
							
								
									c4ef20340b
								
							
						
					
					
						commit
						7785165f40
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -2,7 +2,7 @@ Ahoj! | ||||||
| 
 | 
 | ||||||
| Obdrželi jsme od tebe žádost o obnovu hesla uživatele {{ user }} na webu M&M. | Obdrželi jsme od tebe žádost o obnovu hesla uživatele {{ user }} na webu M&M. | ||||||
| Pro zadání nového hesla přejdi na následující stránku: | Pro zadání nového hesla přejdi na následující stránku: | ||||||
| {{ protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %} | {{ protocol}}://{{ domain }}{% url 'reset_password_confirm' uidb64=uid token=token %} | ||||||
| 
 | 
 | ||||||
| S pozdravem | S pozdravem | ||||||
| organizátoři M&M | organizátoři M&M | ||||||
|  | @ -142,7 +142,7 @@ urlpatterns = [ | ||||||
| 	path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'), | 	path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'), | ||||||
| 	path('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'), | 	path('zmena-hesla/', views.PasswordChangeView.as_view(), name='change_password'), | ||||||
| 	path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), | 	path('reset-hesla/2/', views.PasswordResetDoneView.as_view(), name='reset_password_done'), | ||||||
| 	path('reset-hesla/potvrzeni/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), | 	path('reset-hesla/potvrzeni/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='reset_password_confirm'), | ||||||
| 	path('reset-hesla/hotovo/', views.PasswordResetCompleteView.as_view(), name='reset_password_complete'), | 	path('reset-hesla/hotovo/', views.PasswordResetCompleteView.as_view(), name='reset_password_complete'), | ||||||
| 	path( | 	path( | ||||||
| 		'resitel/osobni-udaje/', | 		'resitel/osobni-udaje/', | ||||||
|  |  | ||||||
|  | @ -1331,7 +1331,7 @@ def prihlaskaView(request): | ||||||
| 			token = PasswordResetTokenGenerator().make_token(u) | 			token = PasswordResetTokenGenerator().make_token(u) | ||||||
| 			url = "https://%s%s" % ( | 			url = "https://%s%s" % ( | ||||||
| 				str(get_current_site(request)), | 				str(get_current_site(request)), | ||||||
| 				str(reverse_lazy("password_reset_confirm", args=[uid, token])) | 				str(reverse_lazy("reset_password_confirm", args=[uid, token])) | ||||||
| 			) | 			) | ||||||
| 
 | 
 | ||||||
| 			u.email_user( | 			u.email_user( | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky