]> git.ozlabs.org Git - patchwork/commit
Add unconfirmed registration expiry
authorJeremy Kerr <jk@ozlabs.org>
Tue, 22 Apr 2014 12:08:27 +0000 (20:08 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 22 Apr 2014 12:13:27 +0000 (20:13 +0800)
commit011ee687fda0d3baf66831279565c14e411eab11
tree6aea85afbbb29da529fd29882c5d8b51c86ca249
parente4c13aee7dc39ae929a26df83b43dfd7d331a357
Add unconfirmed registration expiry

Currently, unconfirmed registrations remain in the database. Although we
have an expiry for the registrations, we don't actually remove rows from
the database. This can clog the admin interface up with unnecessary
registration spam.

We currently have a patchwork cron script to send notifications on patch
changes, so hook this into a new do_expiry function.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/bin/patchwork-cron.py
apps/patchwork/models.py
apps/patchwork/tests/__init__.py
apps/patchwork/tests/expiry.py [new file with mode: 0644]
apps/patchwork/utils.py