Passed
Pull Request — master (#272)
by
unknown
01:39
created

Messages   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 13
rs 10
1
from django.utils.translation import ugettext_lazy as _
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
3
4
class Messages(object):
0 ignored issues
show
Coding Style introduced by
This class should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
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#'
18
        'USER_EMAIL_FIELD_NAME for more details.'
19
    )
20