We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7326b26 commit 6fdfb40Copy full SHA for 6fdfb40
config/settings/base.py
@@ -270,7 +270,7 @@
270
"tmh_registry.users.api.permissions.IsMedicalPersonnel",
271
),
272
'EXCEPTION_HANDLER': 'tmh_registry.common.error_handling.error_handler',
273
- 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
+ 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
274
'PAGE_SIZE': 10,
275
'DEFAULT_THROTTLE_CLASSES': [
276
'rest_framework.throttling.AnonRateThrottle',
tmh_registry/users/api/serializers.py
@@ -40,6 +40,8 @@ class Meta:
40
"first_name",
41
"last_name",
42
"email",
43
+ "is_staff",
44
+ "is_superuser",
45
]
46
47
0 commit comments