summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-12 01:28:54 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-12 01:28:54 +0100
commit5024abc812b20dfcf16823dcc20992763afb6681 (patch)
tree34fb28e7634fe546713cb303dcbfd496efc54d6e /core
parentdbd9b1a0958e11744fc5653181db8d8f7e5a2fb3 (diff)
downloadtroggle-5024abc812b20dfcf16823dcc20992763afb6681.tar.gz
troggle-5024abc812b20dfcf16823dcc20992763afb6681.tar.bz2
troggle-5024abc812b20dfcf16823dcc20992763afb6681.zip
add url field to DataIssue
Diffstat (limited to 'core')
-rw-r--r--core/models.py1
-rw-r--r--core/views/statistics.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/core/models.py b/core/models.py
index cd8db02..8d2d658 100644
--- a/core/models.py
+++ b/core/models.py
@@ -93,6 +93,7 @@ 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)
+ url = models.CharField(max_length=300, blank=True, null=True) # link to offending object
class Meta:
ordering = ['date']
diff --git a/core/views/statistics.py b/core/views/statistics.py
index f7a5453..ac1e7ac 100644
--- a/core/views/statistics.py
+++ b/core/views/statistics.py
@@ -145,6 +145,8 @@ def stats(request):
return render(request,'statistics.html', renderDict)
def dataissues(request):
+ '''Each issue has a parser, a message and a url linking to the offending object after loading
+ '''
def myFunc(di):
return di.parser.lower() + di.message.lower()