summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2019-04-14 22:45:31 +0100
committerSam Wenham <sam@wenhams.co.uk>2019-04-14 22:45:31 +0100
commitf1736c53c4142c9243d5e57d77a5d7a8d62c475b (patch)
treeb2fdc953496cd2fd0b7c75fdf4e65a022b730581 /core/models.py
parent05c5e26e9991fb3e753759c50bc1f29e3592704e (diff)
downloadtroggle-f1736c53c4142c9243d5e57d77a5d7a8d62c475b.tar.gz
troggle-f1736c53c4142c9243d5e57d77a5d7a8d62c475b.tar.bz2
troggle-f1736c53c4142c9243d5e57d77a5d7a8d62c475b.zip
Fix CSRF issues in svx form
Set date formats Add DataIssue model and add errors to it to allow us to give people a list of stuff to fix
Diffstat (limited to 'core/models.py')
-rw-r--r--core/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/models.py b/core/models.py
index d978eaa..195d38f 100644
--- a/core/models.py
+++ b/core/models.py
@@ -870,3 +870,11 @@ class Survey(TroggleModel):
def elevations(self):
return self.scannedimage_set.filter(contents='elevation')
+
+class DataIssue(TroggleModel):
+ date = models.DateTimeField(auto_now_add=True, blank=True)
+ parser = models.CharField(max_length=50, blank=True, null=True)
+ message = models.CharField(max_length=400, blank=True, null=True)
+
+ def __unicode__(self):
+ return u"%s - %s" % (self.parser, self.message)