diff --git a/core/admin.py b/core/admin.py
index 59c93f2..71bbd61 100644
--- a/core/admin.py
+++ b/core/admin.py
@@ -139,6 +139,7 @@ admin.site.register(SurvexStation)
admin.site.register(SurvexScansFolder)
admin.site.register(SurvexScanSingle)
+admin.site.register(DataIssue)
def export_as_json(modeladmin, request, queryset):
response = HttpResponse(content_type="text/json")
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)
diff --git a/core/views_logbooks.py b/core/views_logbooks.py
index b8069da..1bc709c 100644
--- a/core/views_logbooks.py
+++ b/core/views_logbooks.py
@@ -54,7 +54,7 @@ def personindex(request):
if person.bisnotable():
notablepersons.append(person)
- return render(request,'personindex.html', {'persons': persons, 'personss':personss, 'notablepersons':notablepersons, })
+ return render(request,'personindex.html', {'persons': persons, 'personss':personss, 'notablepersons':notablepersons})
def expedition(request, expeditionname):
diff --git a/core/views_survex.py b/core/views_survex.py
index a0f4637..1e6c1bf 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -1,6 +1,7 @@
from django import forms
from django.http import HttpResponseRedirect, HttpResponse
-from django.shortcuts import render_to_response
+from django.shortcuts import render_to_response, render
+from django.core.context_processors import csrf
from django.http import HttpResponse, Http404
import re
import os
@@ -172,6 +173,7 @@ def svx(request, survex_file):
'difflist': difflist,
'logmessage':logmessage,
'form':form}
+ vmap.update(csrf(request))
if outputtype == "ajax":
return render_to_response('svxfiledifflistonly.html', vmap)
return render_to_response('svxfile.html', vmap)
diff --git a/parsers/caves.py b/parsers/caves.py
index ba1c358..2c28365 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -6,10 +6,10 @@ import re
def readcaves():
- newArea = models.Area(short_name = "1623", parent = None)
- newArea.save()
- newArea = models.Area(short_name = "1626", parent = None)
- newArea.save()
+ area_1623 = models.Area(short_name = "1623", parent = None)
+ area_1623.save()
+ area_1626 = models.Area(short_name = "1626", parent = None)
+ area_1626.save()
print("Reading Entrances")
#print "list of
{% if logbookentry.get_previous_by_date %}
- {{logbookentry.get_previous_by_date.date}}
+ {{logbookentry.get_previous_by_date.date|date:"D d M Y"}}
{% endif %}
{% if logbookentry.get_next_by_date %}
- {{logbookentry.get_next_by_date.date}}
+ {{logbookentry.get_next_by_date.date|date:"D d M Y"}}
{% endif %}
{% if persontrip.persontrip_prev %}
- {{persontrip.persontrip_prev.logbook_entry.date}}
+ {{persontrip.persontrip_prev.logbook_entry.date|date:"D d M Y"}}
{% endif %}
{% if persontrip.persontrip_next %}
- {{persontrip.persontrip_next.logbook_entry.date}}
+ {{persontrip.persontrip_next.logbook_entry.date|date:"D d M Y"}}
{% endif %}
diff --git a/templates/svxfile.html b/templates/svxfile.html
index e1ed097..b92f067 100644
--- a/templates/svxfile.html
+++ b/templates/svxfile.html
@@ -46,7 +46,7 @@ $(document).ready(function()