Call super on get_urlpatterns to support multiple inheritance

pull/3545/merge
Matt Westcott 2017-06-09 17:13:20 +01:00
rodzic 2226385f7c
commit c677cefba1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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'),