mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
Custom registration disable message
This commit is contained in:
parent
824fbcb42f
commit
f237f480df
5 changed files with 7 additions and 5 deletions
|
@ -40,5 +40,5 @@ class IsRegistrationDisabled(APIView):
|
|||
operation_description="Check if registration is disabled."
|
||||
)
|
||||
def get(self, request):
|
||||
return Response({"is_disabled": settings.DISABLE_REGISTRATION}, status=status.HTTP_200_OK)
|
||||
return Response({"is_disabled": settings.DISABLE_REGISTRATION, "message": settings.DISABLE_REGISTRATION_MESSAGE}, status=status.HTTP_200_OK)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue