Commit f49c9cf5 authored by John Red Medrano's avatar John Red Medrano

Merge pull request #233 in RMS/api-main-service from red-develop to RMSv2

* commit 'c46c7eeb':
  custom error handler
parents 4cb5c909 c46c7eeb
...@@ -154,8 +154,8 @@ REST_FRAMEWORK = { ...@@ -154,8 +154,8 @@ REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
# 'EXCEPTION_HANDLER': 'rest_framework.views.exception_handler', 'EXCEPTION_HANDLER': 'rest_framework.views.exception_handler',
'EXCEPTION_HANDLER': 'app.datalayer.serializer_handler.custom_exception_handler', # 'EXCEPTION_HANDLER': 'app.datalayer.serializer_handler.custom_exception_handler',
'PAGE_SIZE': 10 'PAGE_SIZE': 10
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment