summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-11 16:14:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-11 16:14:00 +0200
commit4acdaf33c266950ec59a98c22963f45f17e0c8da (patch)
treef07545476ddabb7fadca8ea1f32bf8c29500dfe5 /archaeological_operations/models.py
parent58f9b60015a1d83ccfbeb202aaf3f9ac6c351b38 (diff)
parent8fcaa54363acc8f77beded50e805ca432e8efa77 (diff)
downloadIshtar-4acdaf33c266950ec59a98c22963f45f17e0c8da.tar.bz2
Ishtar-4acdaf33c266950ec59a98c22963f45f17e0c8da.zip
Merge branch 'master' into master-WIP-shortcut
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 926e27b3b..0cebcf292 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -212,7 +212,8 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,
surface = models.IntegerField(_(u"Surface (m2)"), blank=True, null=True)
remains = models.ManyToManyField("RemainType", verbose_name=_(u'Remains'),
null=True, blank=True)
- towns = models.ManyToManyField(Town, verbose_name=_(u"Towns"))
+ towns = models.ManyToManyField(Town, verbose_name=_(u"Towns"),
+ related_name='operations')
cost = models.IntegerField(_(u"Cost (euros)"),
blank=True, null=True) # preventive
periods = models.ManyToManyField(Period, verbose_name=_(u"Periods"),