From a7ff3857efd746227b0c51db4fa9b5f605e82707 Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Mon, 15 Jul 2024 23:25:22 -0300 Subject: [PATCH] fix: ajuste na drfautoapi devido a bump drf --- drfautoapi/drfautoapi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drfautoapi/drfautoapi.py b/drfautoapi/drfautoapi.py index ba0c4decb..be8debdfe 100644 --- a/drfautoapi/drfautoapi.py +++ b/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