diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-09-23 12:53:37 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-09-23 12:53:37 +0200 | 
| commit | 37542704dfdb363106e6aed1f4971427fc318394 (patch) | |
| tree | 06a156a0d2ffe45c4144997931e90752461510b3 /archaeological_finds/forms.py | |
| parent | 0c9a05e24c1abe80f5dedebe256aca9c6ef80e03 (diff) | |
| download | Ishtar-37542704dfdb363106e6aed1f4971427fc318394.tar.bz2 Ishtar-37542704dfdb363106e6aed1f4971427fc318394.zip | |
Fix many to many initialisation in wizards
Diffstat (limited to 'archaeological_finds/forms.py')
| -rw-r--r-- | archaeological_finds/forms.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index c50982dd7..764ef72a2 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -125,7 +125,7 @@ class FindSelect(TableSelect):          forms.IntegerField(label=_(u"Code PATRIARCHE"))      dating__period = forms.ChoiceField(label=_(u"Period"), choices=[])      # TODO search by warehouse -    material_type = forms.ChoiceField(label=_(u"Material type"), choices=[]) +    material_types = forms.ChoiceField(label=_(u"Material type"), choices=[])      object_types = forms.ChoiceField(label=_(u"Object type"), choices=[])      conservatory_state = forms.ChoiceField(label=_(u"Conservatory state"),                                             choices=[]) @@ -137,9 +137,9 @@ class FindSelect(TableSelect):          super(FindSelect, self).__init__(*args, **kwargs)          self.fields['dating__period'].choices = Period.get_types()          self.fields['dating__period'].help_text = Period.get_help() -        self.fields['material_type'].choices = \ +        self.fields['material_types'].choices = \              models.MaterialType.get_types() -        self.fields['material_type'].help_text = \ +        self.fields['material_types'].help_text = \              models.MaterialType.get_help()          self.fields['conservatory_state'].choices = \              models.ConservatoryState.get_types() | 
