Skip to content

Commit

Permalink
URLs compatibility with DRF 3.9+
Browse files Browse the repository at this point in the history
The `base_name` attribute has been deprecated in favour of `basename` (https://www.django-rest-framework.org/community/release-notes/#390).

Found while testing for py3 compatibility GeoNode/geonode#4276
  • Loading branch information
srtonz authored Dec 15, 2019
1 parent 8069447 commit d0ae47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapstore2_adapter/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)
router.register(r'resources', views.MapStoreResourceViewSet, base_name="resources")
router.register(r'resources', views.MapStoreResourceViewSet, basename="resources")

urlpatterns = [
url(r'^rest/', include(router.urls)),
Expand Down

0 comments on commit d0ae47d

Please sign in to comment.