summaryrefslogtreecommitdiffstats
path: root/packages/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-11 06:31:11 +0100
committerDan McGee <dan@archlinux.org>2012-01-11 06:31:11 +0100
commitb2b5c1a064d5d3c33f4c4fc119bd67cf9ca1b7ba (patch)
treea38535e9024270ea46439cddec81d91d2a7f4803 /packages/models.py
parent6b16b9487a95118a6109a2c5119d430dc1192e80 (diff)
downloadarchweb-b2b5c1a064d5d3c33f4c4fc119bd67cf9ca1b7ba.tar.gz
archweb-b2b5c1a064d5d3c33f4c4fc119bd67cf9ca1b7ba.tar.xz
Add old version string to saved flag requests
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/models.py')
-rw-r--r--packages/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py
index 1784389..f63d6db 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -175,6 +175,7 @@ class FlagRequest(models.Model):
created = models.DateTimeField(editable=False)
ip_address = models.IPAddressField('IP address')
pkgbase = models.CharField(max_length=255, db_index=True)
+ version = models.CharField(max_length=255, default='')
repo = models.ForeignKey(Repo)
num_packages = models.PositiveIntegerField('number of packages', default=1)
message = models.TextField('message to developer', blank=True)