Commits

ubernostrum  committed 0599cad

Better example regex in comment

  • Participants
  • Parent commits 4d2a725

Comments (0)

Files changed (1)

File registration/urls.py

 
 urlpatterns = patterns('',
                        # Activation keys get matched by \w+ instead of the more specific
-                       # [a-fA-F0-9]+ because a bad activation key should still get to the view;
+                       # [a-fA-F0-9]{40} because a bad activation key should still get to the view;
                        # that way it can return a sensible "invalid key" message instead of a
                        # confusing 404.
                        url(r'^activate/(?P<activation_key>\w+)/$',