/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...
/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
classcreate
method to remove the invalid invitation first or fix the logic of theCleanEmailMixin().validate_invitation(invitee)
.I want to fix it, so probably I would provide a PR...