summaryrefslogtreecommitdiff
path: root/isotests/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-28 15:04:45 -0500
committerDan McGee <dan@archlinux.org>2011-04-28 17:52:51 -0500
commitb5be7d6fd60ade6af2fb9379fa43e3e93e60736e (patch)
treedc9ec06827b7b11ed22112d5bc1db07662d6bba2 /isotests/models.py
parentcfb4f1bc6a45ddfc068acabc6efb9a4e350dd544 (diff)
isotests: record submission IP address
Helps a lot if we start seeing bogus submissions to track down and suppress the issue. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'isotests/models.py')
-rw-r--r--isotests/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/isotests/models.py b/isotests/models.py
index 55c1bd0d..1267fe85 100644
--- a/isotests/models.py
+++ b/isotests/models.py
@@ -99,7 +99,9 @@ class Bootloader(IsoOption):
class Test(models.Model):
user_name = models.CharField(max_length=500)
user_email = models.EmailField()
+ ip_address = models.IPAddressField()
created = models.DateTimeField(editable=False)
+
iso = models.ForeignKey(Iso)
architecture = models.ForeignKey(Architecture)
iso_type = models.ForeignKey(IsoType)
@@ -115,6 +117,7 @@ class Test(models.Model):
rollback_modules = models.ManyToManyField(Module,
related_name="rollback_test_set", null=True, blank=True)
bootloader = models.ForeignKey(Bootloader)
+
success = models.BooleanField()
comments = models.TextField(null=True, blank=True)