Delete bans when their associated list is deleted
commit08d8cae4f79bdf0a0773efdd2f795411f280cd1e
authorAurélien Bompard <aurelien@bompard.org>
Thu, 14 Jan 2016 15:16:32 +0000 (14 16:16 +0100)
committerAurélien Bompard <aurelien@bompard.org>
Thu, 14 Jan 2016 15:41:32 +0000 (14 16:41 +0100)
treefeedf33bb16d9634cde36a1c288bfac4f927ce72
parent6f0b236ea33ffe2899e813dc9bcbc58da0cbefee
Delete bans when their associated list is deleted

Also add indexes on the Ban fields that are filtered on.
src/mailman/database/alembic/versions/bfda02ab3a9b_ban_indexes.py [new file with mode: 0644]
src/mailman/model/bans.py
src/mailman/model/listmanager.py
src/mailman/model/tests/test_bans.py [new file with mode: 0644]