瀏覽代碼

Fix reverse urls namespacing issue

tags/v1.0.0
Krzysztof Klimonda 11 年之前
父節點
當前提交
83f14445bf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      pinry/users/views.py

+ 2
- 2
pinry/users/views.py 查看文件

@@ -19,7 +19,7 @@ class CreateUser(CreateView):
template_name = 'user/register.html'
model = User
form_class = UserCreationForm
success_url = reverse_lazy('pins:recent-pins')
success_url = reverse_lazy('core:recent-pins')

def get(self, request, *args, **kwargs):
if not settings.ALLOW_NEW_REGISTRATIONS:
@@ -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:home'))
return HttpResponseRedirect(reverse('core:recent-pins'))

Loading…
取消
儲存