Fix too loose url regex for murano/categories/add

Current url regex '^add' will match all urls start with 'add' by mistake. The
'$' added will make sure the regex only match 'add' as expect.

Change-Id: I0611cbe76b6614f7aa694124767c6caaccfb5890
Closes-Bug: #1476991
This commit is contained in:
Lin Yang 2015-07-22 16:12:27 +08:00
parent e11148e636
commit a98d91cb5d
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ urlpatterns = urls.patterns(
urls.url(r'^$', views.CategoriesView.as_view(),
name='index'),
urls.url(r'^add', views.AddCategoryView.as_view(),
urls.url(r'^add$', views.AddCategoryView.as_view(),
name='add'),
urls.url(r'^delete$', views.CategoriesView.as_view(),