Closed benwhalley closed 2 years ago
In the docs it suggests:
router.register(r"global", GlobalPreferencesViewSet, base_name="global")
But base_name is now deprecated by rest_framework in favour of basename. Changing the argument name fixes this error.
base_name
basename
Also, latest versions of Django throw and error when including urls like this:
url(r"^preferences/", include(router.urls, namespace="preferences"))
And instead it should be:
url(r"^preferences/", include((router.urls, "preferences"), namespace="preferences"))
Closing, feel free to reopen / submit a PR if there is still something to fix on our side.
In the docs it suggests:
But
base_name
is now deprecated by rest_framework in favour ofbasename
. Changing the argument name fixes this error.Also, latest versions of Django throw and error when including urls like this:
And instead it should be: