From 0d9bd877b6b928e8d5ad2f1a4d13f9413345859b Mon Sep 17 00:00:00 2001 From: Jim Lyndon Date: Thu, 29 Jan 2015 20:44:36 -0800 Subject: [PATCH] Update urls.py removed trailing slash to resolve tastypie endpoints correctly (not relying on append slash). See issue https://github.com/concentricsky/django-tastypie-swagger/issues/89 --- tastypie_swagger/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tastypie_swagger/urls.py b/tastypie_swagger/urls.py index 2da230b..1d37b53 100644 --- a/tastypie_swagger/urls.py +++ b/tastypie_swagger/urls.py @@ -8,6 +8,6 @@ urlpatterns = patterns('', url(r'^$', SwaggerView.as_view(), name='index'), url(r'^resources/$', ResourcesView.as_view(), name='resources'), - url(r'^schema/(?P\S+)/$', SchemaView.as_view()), + url(r'^schema/(?P\S+)$', SchemaView.as_view()), url(r'^schema/$', SchemaView.as_view(), name='schema'), )