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.")