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

Prevent adding duplicate reviewers #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yedpodtrzitko
Copy link

fixes #7

when the review submitter adds himself in the review form manually, it will add him twice, which will end up with the error reported in #7 .

Checking for the user in POST data should mitigate it.

Enforcing uniqueness via DB constraint should prevent the cause rather than dealing with consequences.

@yedpodtrzitko yedpodtrzitko changed the title Prevent duplicate reviewers Prevent adding duplicate reviewers Aug 24, 2019
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.

MultipleObjectsReturned at /admin/wagtail_review/reviews/2/view/
1 participant