forked from expo/troggle
Public Import Errors webpage
This commit is contained in:
@@ -11,7 +11,7 @@ from django.template.defaultfilters import slugify
|
||||
from django.utils import timezone
|
||||
#from django.views.generic.list import ListView
|
||||
|
||||
from troggle.core.models import Expedition, Person, PersonExpedition
|
||||
from troggle.core.models import Expedition, Person, PersonExpedition, DataIssue
|
||||
from troggle.core.models_caves import Cave, LogbookEntry
|
||||
from troggle.core.models_survex import SurvexBlock
|
||||
|
||||
@@ -143,3 +143,13 @@ def stats(request):
|
||||
|
||||
renderDict = {**statsDict, **{ "addupsurvexlength":addupsurvexlength/1000, "legsbyexpo":legsbyexpo }} # new syntax
|
||||
return render(request,'statistics.html', renderDict)
|
||||
|
||||
def dataissues(request):
|
||||
didict={}
|
||||
for di in DataIssue.objects.all():
|
||||
didict['parser'] = di.parser
|
||||
didict['message']= di.message
|
||||
didict['date']= di.date
|
||||
alldi = DataIssue.objects.all
|
||||
|
||||
return render(request,'dataissues.html', {'didict': alldi})
|
||||
|
||||
Reference in New Issue
Block a user