Tests avec hacheur de mdp MD5
This commit is contained in:
parent
43d4943ebc
commit
32d63a0585
2 changed files with 10 additions and 0 deletions
0
stages/management/commands/__init__.py
Normal file
0
stages/management/commands/__init__.py
Normal file
10
stages/management/commands/test.py
Normal file
10
stages/management/commands/test.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from django.core.management.commands.test import Command as TestCommand
|
||||
from django.test.utils import override_settings
|
||||
|
||||
|
||||
class Command(TestCommand):
|
||||
def handle(self, *args, **options):
|
||||
with override_settings(
|
||||
PASSWORD_HASHERS=["django.contrib.auth.hashers.MD5PasswordHasher"],
|
||||
):
|
||||
return super().handle(*args, **options)
|
||||
Loading…
Add table
Add a link
Reference in a new issue