diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-29 13:34:00 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-09-29 13:34:00 +0200 | 
| commit | 34b4bd5dc5e07b8359bc7ed74c80f325cfed38e5 (patch) | |
| tree | 87f210b8cddd5e68a0bafa68d48db264403902d5 /archaeological_operations | |
| parent | 22dc7bb1454275af103c9f93cca750e4a7987e28 (diff) | |
| download | Ishtar-34b4bd5dc5e07b8359bc7ed74c80f325cfed38e5.tar.bz2 Ishtar-34b4bd5dc5e07b8359bc7ed74c80f325cfed38e5.zip  | |
Operation: add a related name for towns - temp maintenance script for de-dup towns
Diffstat (limited to 'archaeological_operations')
| -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 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"),  | 
