Skip to content

Commit

Permalink
Updated extending URL docs
Browse files Browse the repository at this point in the history
Fixes #92
  • Loading branch information
seocam committed May 22, 2017
1 parent 923275e commit aaad37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ manually or (once again) by extending a built-in method.::
@classmethod
def urls(cls, name_prefix=None):
urlpatterns = super(PostResource, cls).urls(name_prefix=name_prefix)
return urlpatterns + [
return [
url(r'^schema/$', cls.as_view('schema'), name=cls.build_url_name('schema', name_prefix)),
]
] + urlpatterns

.. note::

Expand Down

0 comments on commit aaad37d

Please sign in to comment.