From 52c1dabd0ea242b59047a596ebf7362fffac0a7f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 2 Apr 2021 23:21:23 +0100 Subject: survex_file field inconsistency detection & edit --- core/models_caves.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/models_caves.py') diff --git a/core/models_caves.py b/core/models_caves.py index c5d3945..ddfb2c9 100644 --- a/core/models_caves.py +++ b/core/models_caves.py @@ -189,7 +189,8 @@ class Cave(TroggleModel): subprocess.call(settings.FIX_PERMISSIONS) f = open(os.path.join(settings.CAVEDESCRIPTIONS, self.filename), "wb") t = loader.get_template('dataformat/cave.xml') - c = Context({'cave': self}) + #c = Context({'cave': self}) + c = dict({'cave': self}) u = t.render(c) u8 = u.encode("utf-8") f.write(u8) -- cgit v1.2.3