Browse Source

fix: ajuste na drfautoapi devido a bump drf

bump_django
LeandroJatai 5 months ago
parent
commit
a7ff3857ef
  1. 4
      drfautoapi/drfautoapi.py

4
drfautoapi/drfautoapi.py

@ -213,7 +213,9 @@ class ApiViewSetConstrutor():
for app, built_sets in cls._built_sets.items():
for model, viewset in built_sets.items():
router.register(
f'{app.label}/{model._meta.model_name}', viewset)
f'{app.label}/{model._meta.model_name}',
viewset,
basename=f'{app.label}_{model._meta.model_name}')
return router
@classmethod

Loading…
Cancel
Save