Skip to content

Commit

Permalink
[#3734] Enable new project editor and project list in all envs
Browse files Browse the repository at this point in the history
Remove the special case to enable the new project editor and list only in
non-live environments.
  • Loading branch information
punchagan committed Sep 11, 2019
1 parent 271e61b commit af2d1fd
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions akvo/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,19 @@
url(r'^myrsr/updates/$',
my_rsr.my_updates, name='my_updates'),

url(r'^myrsr/projects_old/$',
my_rsr.my_projects, name='my_projects_old'),

url(r'^myrsr/projects/$',
my_rsr.my_projects, name='my_projects'),
RedirectView.as_view(url='/my-rsr/projects/'),
name='my_projects'),

url(r'^myrsr/project_editor_old/(?P<project_id>\d+)/$',
my_rsr.project_editor, name='project_editor_old'),

url(r'^myrsr/project_editor/(?P<project_id>\d+)/$',
my_rsr.project_editor, name='project_editor'),
RedirectView.as_view(url='/my-rsr/projects/%(project_id)s/'),
name='project_editor'),

url(r'^myrsr/iati/$',
my_rsr.my_iati, name='my_iati'),
Expand Down Expand Up @@ -249,18 +257,3 @@

if settings.REQUIRED_AUTH_GROUPS:
check_auth_groups(settings.REQUIRED_AUTH_GROUPS)

# Enable new project editor
if settings.RSR_DOMAIN != 'rsr.akvo.org':
urlpatterns = i18n_patterns(
url(r'^myrsr/projects/$',
RedirectView.as_view(url='/my-rsr/projects/'),
name='my_projects'),
url(r'^myrsr/projects_old/$',
my_rsr.my_projects, name='my_projects_old'),
url(r'^myrsr/project_editor/(?P<project_id>\d+)/$',
RedirectView.as_view(url='/my-rsr/projects/%(project_id)s/'),
name='project_editor'),
url(r'^myrsr/project_editor_old/(?P<project_id>\d+)/$',
my_rsr.project_editor, name='project_editor_old'),
) + urlpatterns

0 comments on commit af2d1fd

Please # to comment.