Tests avec hacheur de mdp MD5

This commit is contained in:
Claude Paroz 2025-08-13 20:04:29 +02:00
parent 43d4943ebc
commit 32d63a0585
2 changed files with 10 additions and 0 deletions

View file

View 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)