updated to selfdelete inheritance

This commit is contained in:
2026-04-19 01:36:03 +02:00
parent 043e866ac9
commit 5280a87e8b
7 changed files with 151 additions and 58 deletions

View File

@@ -317,7 +317,13 @@ REST_FRAMEWORK = {
'rest_framework.permissions.AllowAny',
),
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
# Default filter backends (ordering, search, filtering)
'DEFAULT_FILTER_BACKENDS': [
'django_filters.rest_framework.DjangoFilterBackend',
'rest_framework.filters.OrderingFilter',
'rest_framework.filters.SearchFilter',
],
# Enable default pagination so custom list actions (e.g., /orders/detail) paginate
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
@@ -328,7 +334,7 @@ REST_FRAMEWORK = {
'user': '2000/hour', # authenticated
},
'EXCEPTION_HANDLER': 'trznice.utils.custom_exception_handler',
'EXCEPTION_HANDLER': 'vontor_cz.utils.custom_exception_handler',
}
#--------------------------------END REST FRAMEWORK 🛠️-------------------------------------