]> git.ozlabs.org Git - patchwork/commit
models: Add PatchChangeNotification and record patch state changes
authorJeremy Kerr <jk@ozlabs.org>
Tue, 29 Mar 2011 03:58:39 +0000 (11:58 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 14 Apr 2011 09:24:03 +0000 (17:24 +0800)
commit798a73b8bfb41f742e78e481ab9c961556e117b3
treec6b89361c98cf6b3d866764eb5b091eee7c8bb71
parent41f19b6643b44768dc06561c992c04ed6148477d
models: Add PatchChangeNotification and record patch state changes

Add a PatchChangeNotification model to keep track of changes to a
patch's state. Hook this up to Patch's pre_save signal.

Requires a DB schema upgrade.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py
apps/patchwork/tests/__init__.py
apps/patchwork/tests/notifications.py [new file with mode: 0644]
lib/sql/grant-all.mysql.sql
lib/sql/grant-all.postgres.sql
lib/sql/migration/011-patch-change-notifications.sql [new file with mode: 0644]