summaryrefslogtreecommitdiff
path: root/packages/models.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-15 01:00:13 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-15 01:00:13 -0500
commitaa2836cb3859e05e9524def5ec37706e3299205c (patch)
treeca1de8b399b578aeb5b86490451a136d9986ad1a /packages/models.py
parent12984bca989485430d3a1be9ea35d3f61239b28f (diff)
parentc3ebf7deae0bb04f1637e9a52e7f9f38d454fec7 (diff)
Merge tag 'release_2012-02-11'
Quick release Conflicts: requirements.txt requirements_prod.txt
Diffstat (limited to 'packages/models.py')
-rw-r--r--packages/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/models.py b/packages/models.py
index f63d6db0..820e61ba 100644
--- a/packages/models.py
+++ b/packages/models.py
@@ -184,6 +184,9 @@ class FlagRequest(models.Model):
is_legitimate = models.BooleanField(default=True,
help_text="Is this actually an out-of-date flag request?")
+ class Meta:
+ get_latest_by = 'created'
+
def who(self):
if self.user:
return self.user.get_full_name()
@@ -258,7 +261,7 @@ class Replacement(models.Model):
# hook up some signals
-for sender in (PackageRelation, SignoffSpecification, Signoff, FlagRequest):
+for sender in (PackageRelation, SignoffSpecification, Signoff):
pre_save.connect(set_created_field, sender=sender,
dispatch_uid="packages.models")