瀏覽代碼

Use the correct reverse argument

tags/v1.0.0
Krzysztof Klimonda 11 年之前
父節點
當前提交
97732c4f45
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      pinry/users/views.py

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

@@ -24,7 +24,7 @@ class CreateUser(CreateView):
def get(self, request, *args, **kwargs):
if not settings.ALLOW_NEW_REGISTRATIONS:
messages.error(request, "The admin of this service is not allowing new registrations.")
return HttpResponseRedirect(reverse('pins:recent-pins'))
return HttpResponseRedirect(reverse('core:recent-pins'))
return super(CreateUser, self).get(request, *args, **kwargs)

def form_valid(self, form):


Loading…
取消
儲存