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/models.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/models.py')
-rw-r--r-- | packages/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/models.py b/packages/models.py index 17843891..f63d6db0 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) |