From df8f5a6f4566806c3e43c65e17504257c30bb953 Mon Sep 17 00:00:00 2001 From: yann Date: Fri, 9 May 2025 12:11:15 +0200 Subject: [PATCH] fix validation in settings, restore lines --- LITReview/LITReview/settings.py | 12 ++++-------- .../templates/authentication/register.html | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/LITReview/LITReview/settings.py b/LITReview/LITReview/settings.py index d0dc2a5..6b3d8bf 100644 --- a/LITReview/LITReview/settings.py +++ b/LITReview/LITReview/settings.py @@ -91,20 +91,16 @@ DATABASES = { AUTH_PASSWORD_VALIDATORS = [ { 'NAME': - 'django.contrib.auth.\ - password_validation.UserAttributeSimilarityValidator', + 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { - 'NAME': 'django.contrib.auth.\ - password_validation.MinimumLengthValidator', + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { - 'NAME': 'django.contrib.auth.\ - password_validation.CommonPasswordValidator', + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { - 'NAME': 'django.contrib.auth.\ - password_validation.NumericPasswordValidator', + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] diff --git a/LITReview/authentication/templates/authentication/register.html b/LITReview/authentication/templates/authentication/register.html index 03c6002..1796e8c 100644 --- a/LITReview/authentication/templates/authentication/register.html +++ b/LITReview/authentication/templates/authentication/register.html @@ -11,7 +11,7 @@
{% csrf_token %} - {{ form.as_p }} + {{ form }}