diff options
author | Dan McGee <dan@archlinux.org> | 2012-01-10 23:31:11 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-10 23:31:11 -0600 |
commit | b2b5c1a064d5d3c33f4c4fc119bd67cf9ca1b7ba (patch) | |
tree | a38535e9024270ea46439cddec81d91d2a7f4803 /packages/admin.py | |
parent | 6b16b9487a95118a6109a2c5119d430dc1192e80 (diff) |
Add old version string to saved flag requestsrelease_2012-01-11
This makes it easier to match up a flag request with the package state
at the time of flagging, and might also help to determine if flagging
actions were legit. We only store it if it is the same across all
packages to be marked.
Also, move the various database write activities when flagging packages
into a single transaction.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/admin.py')
-rw-r--r-- | packages/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/admin.py b/packages/admin.py index 6d85569d..4c170247 100644 --- a/packages/admin.py +++ b/packages/admin.py @@ -10,8 +10,8 @@ class PackageRelationAdmin(admin.ModelAdmin): date_hierarchy = 'created' class FlagRequestAdmin(admin.ModelAdmin): - list_display = ('pkgbase', 'created', 'who', 'is_spam', 'is_legitimate', - 'message') + list_display = ('pkgbase', 'version', 'created', 'who', 'is_spam', + 'is_legitimate', 'message') list_filter = ('is_spam', 'is_legitimate') search_fields = ('pkgbase', 'user_email', 'message') ordering = ('-created',) |