diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-24 20:45:12 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-24 20:45:12 +0200 | 
| commit | 05a15e46173ff8d2f4bb22e5c65b86bdfa2ed36e (patch) | |
| tree | d0f6a4c72463231f218eb40f5a9aa611cc150117 /archaeological_finds/views.py | |
| parent | 5e26d52a6268f2aa04d82108431463b184d45cb7 (diff) | |
| download | Ishtar-05a15e46173ff8d2f4bb22e5c65b86bdfa2ed36e.tar.bz2 Ishtar-05a15e46173ff8d2f4bb22e5c65b86bdfa2ed36e.zip  | |
Reactivate treatments
Diffstat (limited to 'archaeological_finds/views.py')
| -rw-r--r-- | archaeological_finds/views.py | 37 | 
1 files changed, 15 insertions, 22 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index d980ebd69..e55291a76 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -317,37 +317,30 @@ class DeleteFindBasketView(IshtarMixin, LoginRequiredMixin, FormView):          form.save()          return HttpResponseRedirect(self.get_success_url()) -"""  treatment_creation_wizard = TreatmentWizard.as_view([      ('basetreatment-treatment_creation', BaseTreatmentForm), -    ('selecfind-treatment_creation', UpstreamFindFormSelection), +    # ('selecfind-treatment_creation', UpstreamFindFormSelection),      ('multiselecfinds-treatment_creation', FindMultipleFormSelection), -    ('container-treatment_creation', ContainerForm),      ('resultfind-treatment_creation', ResultFindForm),      ('resultfinds-treatment_creation', ResultFindFormSet),      ('final-treatment_creation', FinalForm)],      condition_dict={ -        'selecfind-treatment_creation': -            check_treatment('basetreatment-treatment_creation', -                          'treatment_type', not_type_list=['physical_grouping', -                                                           'packaging']), -        'multiselecfinds-treatment_creation': -            check_treatment('basetreatment-treatment_creation', -                            'treatment_type', ['physical_grouping', -                                               'packaging']), -        'resultfinds-treatment_creation': -            check_treatment('basetreatment-treatment_creation', -                            'treatment_type', ['split']), -        'resultfind-treatment_creation': -            check_treatment('basetreatment-treatment_creation', -                            'treatment_type', not_type_list=['split']), -        'container-treatment_creation': -            check_treatment('basetreatment-treatment_creation', -                            'treatment_type', ['packaging']), -    }, +    'selecfind-treatment_creation': +        check_treatment('basetreatment-treatment_creation', +                        'treatment_type', not_type_list=[ +                            'physical_grouping', 'packaging']), +    'multiselecfinds-treatment_creation': +        check_treatment('basetreatment-treatment_creation', +                        'treatment_type', ['physical_grouping', +                                           'packaging']), +    'resultfinds-treatment_creation': +        check_treatment('basetreatment-treatment_creation', +                        'treatment_type', ['split']), +    'resultfind-treatment_creation': +        check_treatment('basetreatment-treatment_creation', +                        'treatment_type', not_type_list=['split'])},      label=_(u"New treatment"),      url_name='treatment_creation',) -"""  """  treatment_source_creation_wizard = TreatmentSourceWizard.as_view([  | 
