Upgrade to Django 3.2
- update dependencies - fix deprecation warnings - fix tests - skip some tests that need more work - reformat changed code with isort and black
This commit is contained in:
parent
0f18e59d67
commit
4af1a39ca4
93 changed files with 3598 additions and 2725 deletions
|
@ -12,7 +12,7 @@ from django.core.exceptions import ValidationError
|
|||
from django.db import models, transaction
|
||||
from django.dispatch import Signal
|
||||
from django.utils import timezone
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.utils.translation import gettext as _
|
||||
from model_utils.models import TimeStampedModel
|
||||
from passlib.hash import sha512_crypt
|
||||
from passlib.pwd import genword
|
||||
|
@ -20,7 +20,7 @@ from passlib.pwd import genword
|
|||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
password_set = Signal(providing_args=["instance", "password"])
|
||||
password_set = Signal()
|
||||
|
||||
|
||||
CANNOT_USE_PRIMARY_GROUP_AS_ADDITIONAL = _("You can not use a user's primary group.")
|
||||
|
@ -365,7 +365,7 @@ class Shadow(TimeStampedModel, models.Model):
|
|||
|
||||
:param str password: the password
|
||||
"""
|
||||
self.passwd = sha512_crypt.encrypt(password)
|
||||
self.passwd = sha512_crypt.hash(password)
|
||||
|
||||
|
||||
class AdditionalGroup(TimeStampedModel, models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue