Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-gray-tangent committed Jul 30, 2024
1 parent 66dbfa0 commit 05fdda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 05fdda1

Please sign in to comment.