alanjds / drf-nested-routers

Nested Routers for Django Rest Framework
https://pypi.org/project/drf-nested-routers/
Apache License 2.0
1.66k stars 158 forks source link

parent_lookup_kwargs raises an attribute error in django-spectacular api docs. #312

Closed 73VW closed 10 months ago

73VW commented 1 year ago

Fix for #311

dickermoshe commented 11 months ago

@alanjds This check for a swagger request needs to be on the initialize_request too. I've contributed PR #290 that added it to the get_queryset function. It seems in needs to be added here as well. It schema it generates is valid. Can we get this merged into master

alanjds commented 10 months ago

@dickermoshe looks like your proposal was merged indirectly in meantime. I will close the PR as there is only string quotes changes now. Anyway, thanks for your contribution.

Best regards, Alan.