summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-06 00:30:35 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-06 00:30:35 +0100
commit09ece68379a2c53c88ce8a5a798e4fda031009ef (patch)
tree61fedce75f20d19e2e0419f97b0b702278cacb29 /archaeological_operations/models.py
parent1750ec8e009e1413867ffc1c3c6a1f96f0b425fa (diff)
downloadIshtar-09ece68379a2c53c88ce8a5a798e4fda031009ef.tar.bz2
Ishtar-09ece68379a2c53c88ce8a5a798e4fda031009ef.zip
Better date formatting for ooo file variables
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 04ad867fc..125a5d7d1 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -416,7 +416,7 @@ class AdministrativeAct(BaseHistorizedItem, OwnPerms, ValueGetter):
filename = ''
if operation and self.operation:
filename = self.operation.associated_filename
- else:
+ elif self.associated_file:
filename = self.associated_file.associated_filename
filename = u"-".join(filename.split('-')[:-1]) # remove date
if self.act_type.code: