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

Seems a bug: views.SendJSONInvite.post creates invite without deleting a previous invalidate one #243

Open
Huge opened this issue Feb 27, 2024 · 0 comments · May be fixed by #244
Open

Seems a bug: views.SendJSONInvite.post creates invite without deleting a previous invalidate one #243

Huge opened this issue Feb 27, 2024 · 0 comments · May be fixed by #244

Comments

@Huge
Copy link

Huge commented Feb 27, 2024

/invitations/views.py, line 72 fails with django.db.utils.IntegrityError: UNIQUE constraint failed: invitations_invitation.email when a user was invited previously but their invitation expired.

There seem two ways to fix it - either improve the Invitation class create method to remove the invalid invitation first or fix the logic of the CleanEmailMixin().validate_invitation(invitee).

I want to fix it, so probably I would provide a PR...

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 a pull request may close this issue.

1 participant