summaryrefslogtreecommitdiff
path: root/releng/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-01 09:20:38 -0500
committerDan McGee <dan@archlinux.org>2012-11-01 09:20:38 -0500
commitdf208fb0bd3f8e5783a6e41f411e7aa80179b2b6 (patch)
tree2220ebb3b61d86797c966ad56844ca24a3a377c1 /releng/models.py
parent49546cddcab13c1767e386d6061493a25388b4bd (diff)
Signal attachment cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng/models.py')
-rw-r--r--releng/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/releng/models.py b/releng/models.py
index d602e9e5..bd178add 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -104,9 +104,9 @@ class Test(models.Model):
success = models.BooleanField()
comments = models.TextField(null=True, blank=True)
-pre_save.connect(set_created_field, sender=Iso,
- dispatch_uid="releng.models")
-pre_save.connect(set_created_field, sender=Test,
- dispatch_uid="releng.models")
+
+for model in (Iso, Test):
+ pre_save.connect(set_created_field, sender=model,
+ dispatch_uid="releng.models")
# vim: set ts=4 sw=4 et: