Mudanza de repo

This commit is contained in:
2025-09-22 18:43:29 -06:00
parent 26fe36ca52
commit d11d543bdc
193 changed files with 10998 additions and 0 deletions

8
core/swagger.py Normal file
View File

@@ -0,0 +1,8 @@
from drf_yasg.inspectors import SwaggerAutoSchema
class CustomAutoSchema(SwaggerAutoSchema):
def get_tags(self, operation_keys=None):
tags = self.overrides.get('tags', None) or getattr(self.view, 'my_tags', [])
if not tags:
tags = [operation_keys[0]]
return tags