kopia lustrzana https://github.com/wagtail/wagtail
Call super on get_urlpatterns to support multiple inheritance
rodzic
2226385f7c
commit
c677cefba1
|
@ -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'),
|
||||
|
|
Ładowanie…
Reference in New Issue