diff options
author | 2020-07-29 13:55:46 +0200 | |
---|---|---|
committer | 2020-07-29 13:55:46 +0200 | |
commit | 0d7c95a80692f15c36b36152034e3bbe54e3c37c (patch) | |
tree | 5f98405211fd9af8be3497b89fbb08fe53fe94f6 /pydis_site/apps/home/models | |
parent | Rename AllowDenyList to FilterList (diff) |
Handle unique validator in DRF, not Django.
I was handling this in a Django vanilla kind of way, which was causing
the constraint to return a 500 instead of a 400. This changes the
approach to use the DRF way, and makes it return 400.
It doesn't actually change the way anything behaves, other than
returning the right status code.
Diffstat (limited to 'pydis_site/apps/home/models')
0 files changed, 0 insertions, 0 deletions