From 88a76fef99210ac1a7e7873b21bfe7a6b39a3a6e Mon Sep 17 00:00:00 2001 From: Tim Mundt Date: Fri, 13 Sep 2019 09:45:19 +0200 Subject: [PATCH] made compatible with DRF 3.4 --- drf_nested_routing/routers.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drf_nested_routing/routers.py b/drf_nested_routing/routers.py index eda80d2..e8d44e1 100644 --- a/drf_nested_routing/routers.py +++ b/drf_nested_routing/routers.py @@ -48,7 +48,7 @@ def register(self, *args, **kwargs): self._register(*args, **kwargs) return NestedRegistryItem(router=self, parent_prefix=self.registry[-1][0]) - def get_api_root_view(self): + def get_api_root_view(self, schema_urls=None): """ Return a view to use as the API root. """ diff --git a/setup.py b/setup.py index 94f332c..7d24ae3 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ packages=find_packages(exclude=['tests*']), install_requires=[ 'django>=1.6', - 'djangorestframework>=3.0.0', + 'djangorestframework>=3.4.0', ], zip_safe=False, classifiers=[