From 05fdda13ba2036e40f8f514a0a5bae42c4d30cf3 Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Tue, 30 Jul 2024 10:59:29 +0200 Subject: [PATCH] cleanup code --- app/accounts/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/accounts/forms.py b/app/accounts/forms.py index b6ddc217..7c84f221 100644 --- a/app/accounts/forms.py +++ b/app/accounts/forms.py @@ -71,7 +71,7 @@ def clean_email(self): """ User = get_user_model() email = self.cleaned_data["email"] - users = User.objects.get(email=email) + users = User.objects.filter(email=email) if not users.exists(): raise forms.ValidationError("There is a error please contact the administrator.")