Code changes needed to update to django-rest-framework latest version #5517
Labels
dependencies
Pull requests that update a dependency file
type: bug
Something isn't working as expected
Environment
Steps to Reproduce
poetry add django-rest-framework~3.15.0
Expected Behavior
Nautobot to start successfully
Observed Behavior
This appears to due to https://github.com/nautobot/nautobot/blob/develop/nautobot/extras/api/urls.py#L53-L54, where we're registering two different viewsets under the
/api/extras/jobs/
URL endpoint. This was permitted and valid in DRF 3.14 and earlier; it appears that this new restriction was added in 3.15 by encode/django-rest-framework#8438.Note that providing a unique basename for one of these viewsets would be a breaking change for us, as it would change the reversible URL names for the updated viewset. Most likely, to preserve the existing URL names, we'll have to figure out a way to merge the two viewset classes into a single combined viewset class; an alternate possibility might be to override the
BaseRouter.is_already_registered()
function to bypass this check and restore the prior functionality?The text was updated successfully, but these errors were encountered: