Skip to content

Commit cd29549

Browse files
committed
Support trailing slash
1 parent fc40bfe commit cd29549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbdb/core/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
urlpatterns = [
1313
url(r'^$', views.HomeView.as_view(), name="home"),
1414

15-
url(r'^db/(?P<slug>[\w-]+)$', views.SystemView.as_view(), name='system'),
15+
url(r'^db/(?P<slug>[\w-]+)[/]?$', views.SystemView.as_view(), name='system'),
1616
url(r'^db/(?P<slug>[\w-]+)/edit$', views.DatabasesEditView.as_view(), name='system_edit'),
1717
url(r'^db/(?P<slug>[\w-]+)/revisions/$', views.DatabaseRevisionList.as_view(), name='system_revision'),
1818
url(r'^db/(?P<slug>[\w-]+)/revisions/(?P<ver>\d+)$', views.DatabaseRevisionView.as_view(), name='system_revision_view'),

0 commit comments

Comments
 (0)