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
commita5128e0791c7cd0db9f3775ff681cbc79160af3a (patch)
tree61fedce75f20d19e2e0419f97b0b702278cacb29 /archaeological_operations/models.py
parent4fe7989786ec2a0110b2fb2ad9356d7cc24b18e4 (diff)
downloadIshtar-a5128e0791c7cd0db9f3775ff681cbc79160af3a.tar.bz2
Ishtar-a5128e0791c7cd0db9f3775ff681cbc79160af3a.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: