mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-11 10:30:58 +00:00
Call super on get_urlpatterns to support multiple inheritance
This commit is contained in:
parent
2226385f7c
commit
c677cefba1
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class ModelViewSet(ViewSet):
|
|||
)
|
||||
|
||||
def get_urlpatterns(self):
|
||||
return [
|
||||
return super(ModelViewSet, self).get_urlpatterns() + [
|
||||
url(r'^$', self.index_view, name='index'),
|
||||
url(r'^new/$', self.add_view, name='add'),
|
||||
url(r'^(\d+)/$', self.edit_view, name='edit'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue