updated to selfdelete inheritance
This commit is contained in:
@@ -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 🛠️-------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user