Issues (463)

djoser/constants.py (2 issues)

1
from django.utils.translation import gettext_lazy as _
0 ignored issues
show
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
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 log in 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