Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resend verification #332

Merged
merged 1 commit into from
Nov 25, 2021
Merged

fix: resend verification #332

merged 1 commit into from
Nov 25, 2021

Conversation

aabanaag
Copy link

Changes

Copy link
Owner

@iMerica iMerica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iMerica iMerica merged commit eeaaab4 into iMerica:master Nov 25, 2021
email = EmailAddress.objects.get(**serializer.validated_data)
if not email:
raise ValidationError("Account does not exist")
email = EmailAddress.objects.filter(**serializer.validated_data).first()
Copy link

@merwok merwok Feb 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line could use self.queryset.filter(...) or better self.get_queryset(), so that if a subclass changes the queryset attribute or the get_queryset method, that wouldn’t be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants