diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-13 11:43:51 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-03-13 11:43:51 +0100 |
| commit | b927a41b76152d722b979abde5cbd09e4ddb552a (patch) | |
| tree | 3ddcc40aa75a6d63906a4b272fb346b9fa54e9bb | |
| parent | 45daac1b111158ea4ee54d8d56c33ff08d5111ef (diff) | |
| download | Ishtar-b927a41b76152d722b979abde5cbd09e4ddb552a.tar.bz2 Ishtar-b927a41b76152d722b979abde5cbd09e4ddb552a.zip | |
Improve display of operation codes
| -rw-r--r-- | archaeological_operations/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 20c8df16f..a0b751802 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -132,7 +132,8 @@ class Operation(BaseHistorizedItem, OwnPerms): items = [unicode(_('Intercommunal'))] if self.towns.count() == 1: items[0] = unicode(self.towns.all()[0]) - items.append("-".join((unicode(self.year), + if self.operation_code: + items.append("-".join((unicode(self.year), unicode(self.operation_code)))) return settings.JOINT.join(items) |
