diff options
author | Cefin <kevon@tuta.io> | 2021-12-13 16:35:38 +0000 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:20:59 +0100 |
commit | 6d11d2cd901e043dae90d5bcc13deef454f96dce (patch) | |
tree | 807ead469113f07953c3f8f5df996c3f9a508cfb /archaeological_finds/views.py | |
parent | 8bd2adb11c8c5ee5852e9deacdb724a4369a42e5 (diff) | |
download | Ishtar-6d11d2cd901e043dae90d5bcc13deef454f96dce.tar.bz2 Ishtar-6d11d2cd901e043dae90d5bcc13deef454f96dce.zip |
clean the code for #5231
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r-- | archaeological_finds/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 4d8430359..f81c6d27a 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -655,8 +655,8 @@ treatment_creation_n1_wizard = wizards.TreatmentN1Wizard.as_view( ) -def treatmentN1_create(request, pk): - if not wizard_is_available(treatment_creation_n1_wizard, models.Treatment): +def treatment_n1_create(request, pk): + if not wizard_is_available(treatment_creation_n1_wizard, models.Find, pk): return HttpResponseRedirect("/") wizards.TreatmentWizard.session_set_value( request, "selecfind-treatment_creation_n1", "pk", pk, reset=True |