diff options
-rw-r--r-- | core/models.py | 1 | ||||
-rw-r--r-- | core/views/statistics.py | 2 | ||||
-rw-r--r-- | templates/dataissues.html | 4 |
3 files changed, 5 insertions, 2 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() diff --git a/templates/dataissues.html b/templates/dataissues.html index 7c518a0..46538a0 100644 --- a/templates/dataissues.html +++ b/templates/dataissues.html @@ -6,7 +6,7 @@ <h1>Loading data from files: Issues arising that need attention</h1> <p> -This is work in progress (April 2021). +This is work in progress (April 2021).The URL links to the offending objects are not enabled yet. <style> tr { text-align:center; font-family: Tahoma,'Trebuchet MS','Lucida Grande',Verdana, Arial, Helvetica, Sans-Serif; @@ -25,7 +25,7 @@ td { background : lightblue; } <tr> {% endifchanged %} <td bgcolor={{mycolor}}>{{di.parser}}</td> - <td bgcolor={{mycolor}} style="text-align:left">{{di.message}}</td> + <td bgcolor={{mycolor}} style="text-align:left"><a href="{{di.url}}">{{di.message}}</a></td> </tr> {% endfor %} </font> |