|
|
@@ -16,7 +16,7 @@ reverse_lazy = lambda name=None, *args: lazy(reverse, str)(name, args=args) |
|
|
|
|
|
|
|
|
|
|
|
class CreateUser(CreateView): |
|
|
|
template_name = 'user/register.html' |
|
|
|
template_name = 'users/register.html' |
|
|
|
model = User |
|
|
|
form_class = UserCreationForm |
|
|
|
success_url = reverse_lazy('core:recent-pins') |
|
|
@@ -41,4 +41,4 @@ class CreateUser(CreateView): |
|
|
|
def logout_user(request): |
|
|
|
logout(request) |
|
|
|
messages.success(request, 'You have successfully logged out.') |
|
|
|
return HttpResponseRedirect(reverse('core:recent-pins')) |
|
|
|
return HttpResponseRedirect(reverse('core:recent-pins')) |