diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-24 19:39:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-24 19:39:06 +0100 |
commit | a1c527975f9be70e5d3807f072a05a52c35b7c8e (patch) | |
tree | 3eab6d3ab5f8da3f4cb7c803b2237928b27b9d74 /archaeological_finds/forms.py | |
parent | 5d8a340c76470f47c45dd944a28f01b752ce6e98 (diff) | |
parent | b1897e55f28e9c3f56c41ae90067ad9890598b4c (diff) | |
download | Ishtar-a1c527975f9be70e5d3807f072a05a52c35b7c8e.tar.bz2 Ishtar-a1c527975f9be70e5d3807f072a05a52c35b7c8e.zip |
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r-- | archaeological_finds/forms.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py index b88ee164e..2a895064f 100644 --- a/archaeological_finds/forms.py +++ b/archaeological_finds/forms.py @@ -41,7 +41,7 @@ import models from ishtar_common.forms import FormSet, FloatField, \ get_form_selection, reverse_lazy, TableSelect, get_now, FinalForm, \ - ManageOldType + ManageOldType, FieldType from ishtar_common.forms_common import get_town_field, SourceSelect from ishtar_common.utils import convert_coordinates_to_point @@ -316,11 +316,11 @@ class PreservationForm(ManageOldType, forms.Form): widget=forms.Textarea) TYPES = [ - ('conservatory_state', models.ConservatoryState, False), - ('treatment_emergency', models.TreatmentEmergencyType, False), - ('preservation_to_consider', models.TreatmentType, True), - ('alteration', models.AlterationType, True), - ('alteration_cause', models.AlterationCauseType, True), + FieldType('conservatory_state', models.ConservatoryState), + FieldType('treatment_emergency', models.TreatmentEmergencyType), + FieldType('preservation_to_consider', models.TreatmentType, True), + FieldType('alteration', models.AlterationType, True), + FieldType('alteration_cause', models.AlterationCauseType, True), ] def __init__(self, *args, **kwargs): |