Total Complexity | 0 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from django.utils.translation import ugettext_lazy as _ |
||
4 | class Messages(object): |
||
5 | INVALID_CREDENTIALS_ERROR = _('Unable to login with provided credentials.') |
||
6 | INACTIVE_ACCOUNT_ERROR = _('User account is disabled.') |
||
7 | INVALID_TOKEN_ERROR = _('Invalid token for given user.') |
||
8 | INVALID_UID_ERROR = _('Invalid user id or user doesn\'t exist.') |
||
9 | STALE_TOKEN_ERROR = _('Stale token for given user.') |
||
10 | PASSWORD_MISMATCH_ERROR = _('The two password fields didn\'t match.') |
||
11 | USERNAME_MISMATCH_ERROR = _('The two {0} fields didn\'t match.') |
||
12 | INVALID_PASSWORD_ERROR = _('Invalid password.') |
||
13 | EMAIL_NOT_FOUND = _('User with given email does not exist.') |
||
14 | CANNOT_CREATE_USER_ERROR = _('Unable to create account.') |
||
15 | USER_WITHOUT_EMAIL_FIELD_ERROR = _( |
||
16 | 'User model does not contain specified email field. ' |
||
17 | 'Please see http://djoser.readthedocs.io/en/latest/settings.html#' |
||
20 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.