wagtail-nest / wagtail-review

A Wagtail extension for gathering annotations and feedback on pages before publication
BSD 3-Clause "New" or "Revised" License
49 stars 19 forks source link

Prevent adding duplicate reviewers #15

Open yedpodtrzitko opened 5 years ago

yedpodtrzitko commented 5 years ago

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.