Changes between Version 3 and Version 4 of Ticket #27411


Ignore:
Timestamp:
Oct 31, 2016, 6:27:08 PM (8 years ago)
Author:
Marten Kenbeek
Comment:

The correct way to reverse that url is reverse_lazy('accounts:registration'). The current_app parameter has no effect unless you also supply a namespace using the <namespace>:<viewname> syntax.

Be sure to read Reversing namespaced urls.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27411

    • Property Resolution needsinfoinvalid
  • Ticket #27411 – Description

    v3 v4  
    4343from . import views
    4444urlpatterns = [
    45     url(r'^register/$', views.Registratiowith details if it turns out to be a bug in Django. The minimal example to reproduce should ideally not include third-party apps such as django-rest-framework.nView.as_view(), name='registration'),
     45    url(r'^register/$', views.RegistrationView.as_view(), name='registration'),
    4646    url(r'^users/$', views.AdminCreateUserView.as_view(), name='users'),
    4747    url(r'^groups/$', views.GroupsCreateView.as_view(), name='groups'),
Back to Top