8000 Fix Sphinx warning and improve docstrings · codingjoe/django-mail-auth@aec86b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit aec86b2

Browse files
committed
Fix Sphinx warning and improve docstrings
1 parent 9a1ad2e commit aec86b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/customizing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ API documentation
118118
:members:
119119

120120
.. autoattribute:: mailauth.contrib.user.models.AbstractEmailUser.email
121+
:noindex:
121122
.. autoattribute:: mailauth.contrib.user.models.AbstractEmailUser.session_salt
123+
:noindex:
122124

123125
.. autoclass:: mailauth.contrib.user.models.EmailUser
124126
:members:

mailauth/contrib/user/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ class AbstractEmailUser(AbstractUser):
5151
password = None
5252

5353
email = CIEmailField(_("email address"), unique=True, db_index=True)
54-
"""The field is unique and case insensitive to serve as a better username."""
54+
"""Unique and case insensitive to serve as a better username."""
5555

56-
# Salt for the session hash replacing the password in this function.
5756
session_salt = models.CharField(
5857
max_length=12,
5958
editable=False,
6059
default=_get_session_salt,
6160
)
61+
"""Salt for the session hash replacing the password in this function."""
6262

6363
def has_usable_password(self):
6464
return False

0 commit comments

Comments
 (0)
0