diff options
author | Cefin <kevon@tuta.io> | 2021-11-02 12:38:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-16 17:04:41 +0100 |
commit | 985fdf0e2415503dd9d4bf1f9b922e23d362c28b (patch) | |
tree | 17a2f90e0f217020787b6690f8144438084954e9 | |
parent | ee5acf1f4a5317a85136fbd4d08042be4dfa50d2 (diff) | |
download | Ishtar-985fdf0e2415503dd9d4bf1f9b922e23d362c28b.tar.bz2 Ishtar-985fdf0e2415503dd9d4bf1f9b922e23d362c28b.zip |
modify location type on warehouse lot #5183 part two
-rw-r--r-- | archaeological_warehouse/forms.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index 010b6a292..6638140d6 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -696,17 +696,16 @@ class QAContainerFormMulti(QAForm): PREFIX = "qa" form_admin_name = _("Container - Quick action - Modify") form_slug = "container-quickaction-modify" - base_models = ["qaparent", "qacontainer_type", "qalocation", "qalocation_type", "qaresponsibility"] + base_models = ["qaparent", "qacontainer_type", "qalocation", "qaresponsibility"] associated_models = { "qaparent": models.Container, "qacontainer_type": models.ContainerType, "qalocation": models.Warehouse, - "qalocation_type": models.WarehouseType, "qaresponsibility": models.Warehouse, } MULTI = True - REPLACE_FIELDS = ["qaparent", "qacontainer_type", "qalocation", "qalocation_type", "qaresponsibility"] + REPLACE_FIELDS = ["qaparent", "qacontainer_type", "qalocation", "qaresponsibility"] HEADERS = { "qalocation": FormHeader(_("Warehouse")), @@ -724,9 +723,6 @@ class QAContainerFormMulti(QAForm): validators=[valid_id(models.Warehouse)], required=False, ) - qalocation_type = forms.ChoiceField( - label=_("Location type"), required=False, choices=[] - ) qaresponsibility = forms.IntegerField( label=_("Responsibility"), widget=widgets.JQueryAutoComplete( @@ -748,7 +744,6 @@ class QAContainerFormMulti(QAForm): TYPES = [ FieldType("qacontainer_type", models.ContainerType), - FieldType("qalocation_type", models.WarehouseType), ] def __init__(self, *args, **kwargs): |