Changed the url regexpr for review and added 2 missing imports.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 01 Feb 2009 13:07:12 +0000
changeset 1139 7a6f94ffcc87
parent 1138 18ef39338211
child 1140 a8eaea0b268d
Changed the url regexpr for review and added 2 missing imports. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/group_app.py
--- a/app/soc/views/models/group_app.py	Sun Feb 01 09:55:02 2009 +0000
+++ b/app/soc/views/models/group_app.py	Sun Feb 01 13:07:12 2009 +0000
@@ -32,6 +32,8 @@
 from soc.logic.helper import notifications
 from soc.logic.models import group_app as group_app_logic
 from soc.logic.models import user as user_logic
+from soc.views import helper
+from soc.views import out_of_band
 from soc.views.helper import decorators
 from soc.views.helper import lists as list_helper
 from soc.views.helper import redirects
@@ -66,7 +68,7 @@
     patterns = [(r'^%(url_name)s/(?P<access_type>review)$',
         'soc.views.models.%(module_name)s.review_overview',
         'Review %(name_plural)s'),
-        (r'^%(url_name)s/(?P<access_type>review)/%(lnp)s$',
+        (r'^%(url_name)s/(?P<access_type>review)/%(key_fields)s$',
           'soc.views.models.%(module_name)s.review',
           'Review %(name_short)s')]