From 886abbf9c7ca77822a9e73a10c65c03c6849fbfa Mon Sep 17 00:00:00 2001 From: Tom Wojcik Date: Fri, 3 May 2024 18:53:31 +0200 Subject: [PATCH] readd a const INACTIVE_ACCOUNT_ERROR even though it's not in use, to be addressed in Djoser 3 --- djoser/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/djoser/constants.py b/djoser/constants.py index 6df3a5d9..57be35d4 100644 --- a/djoser/constants.py +++ b/djoser/constants.py @@ -3,6 +3,9 @@ class Messages: INVALID_CREDENTIALS_ERROR = _("Unable to log in with provided credentials.") + INACTIVE_ACCOUNT_ERROR = _( + "User account is disabled." + ) # not in use since Django 1.10 INVALID_TOKEN_ERROR = _("Invalid token for given user.") INVALID_UID_ERROR = _("Invalid user id or user doesn't exist.") STALE_TOKEN_ERROR = _("Stale token for given user.")