diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-03-11 18:55:33 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:41:37 +0200 | 
| commit | e4454fdbf47a44de9de725ed733d12b604855da6 (patch) | |
| tree | 28057054e3cea0aa7815dbe0ef21d71219fae5e2 /archaeological_finds/forms.py | |
| parent | 56e4e06840b889713e04c019519f68b4fd70922f (diff) | |
| download | Ishtar-e4454fdbf47a44de9de725ed733d12b604855da6.tar.bz2 Ishtar-e4454fdbf47a44de9de725ed733d12b604855da6.zip  | |
Site translations in forms
Diffstat (limited to 'archaeological_finds/forms.py')
| -rw-r--r-- | archaeological_finds/forms.py | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index fce2fe3d6..6bd89aa48 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -1087,7 +1087,6 @@ class FindSelect(HistorySelect):          choices=[], label=_(u"Treatment emergency")      ) -      estimated_value__higher = FloatField(          label=_(u"Estimated value - higher than"))      estimated_value__lower = FloatField( @@ -1127,6 +1126,12 @@ class FindSelect(HistorySelect):          FieldType('alteration_causes', models.AlterationCauseType),          FieldType('treatment_emergency', models.TreatmentEmergencyType),      ] +    SITE_KEYS = { +        "archaeological_sites": "attached-to-operation", +        "archaeological_sites_name": "name-attached-to-operation", +        "archaeological_sites_context_record": "attached-to-cr", +        "archaeological_sites_context_record_name": "name-attached-to-cr", +    }      def __init__(self, *args, **kwargs):          super(FindSelect, self).__init__(*args, **kwargs)  | 
