aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-08 01:22:15 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-08 01:22:15 +0200
commit0d383cbe925fdec97cb678c0168ecf7e90d3d729 (patch)
tree2aa529c345ffe5000452c78aedc19867b227a43c /manage.py
parentMigrate undesirable active infraction to inactive (diff)
Prevent double active infractions with constraint
https://github.com/python-discord/site/issues/273 This commits adds a UniqueConstraint for active infractions on a combination of the `user` and `type` field. This means that a user can only have one active infraction of a given type in the database at any time. I've also added tests to make sure that this behaves as expected.
Diffstat (limited to 'manage.py')
0 files changed, 0 insertions, 0 deletions