Skip to content

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 force-pushed the enforce-unique-reviewer branch from c5e802e to 5f537cd Compare August 24, 2019 02:22
@yedpodtrzitko yedpodtrzitko force-pushed the enforce-unique-reviewer branch from 5f537cd to bb17d7e Compare August 24, 2019 02:24
@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