summaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-01 15:20:38 +0100
committerDan McGee <dan@archlinux.org>2012-11-01 15:20:38 +0100
commitdf208fb0bd3f8e5783a6e41f411e7aa80179b2b6 (patch)
tree2220ebb3b61d86797c966ad56844ca24a3a377c1 /releng
parent49546cddcab13c1767e386d6061493a25388b4bd (diff)
downloadarchweb-df208fb0bd3f8e5783a6e41f411e7aa80179b2b6.tar.gz
archweb-df208fb0bd3f8e5783a6e41f411e7aa80179b2b6.tar.xz
Signal attachment cleanup
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng')
-rw-r--r--releng/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/releng/models.py b/releng/models.py
index d602e9e..bd178ad 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: