From 23df89cf319f05cbad4cb769c05c5699fe9d3f4a Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Sun, 14 Apr 2019 22:45:31 +0100 Subject: 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 --- core/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/models.py') 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) -- cgit v1.2.3