summaryrefslogtreecommitdiffstats
path: root/releng/models.py
diff options
context:
space:
mode:
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 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: