From 5a4747a863ee926223148bad3163b4b7135328d3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 5 Jan 2021 15:59:34 +0100 Subject: Fix document-editor -> document-publisher --- example_project/settings.py | 2 +- ishtar_common/forms_common.py | 8 ++++---- ishtar_common/models.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example_project/settings.py b/example_project/settings.py index c5b1171bd..d7c382f71 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -261,7 +261,7 @@ ISHTAR_QRCODE_SCALE = 2 # scale of the QR code ISHTAR_DEFAULT_YEAR = 1900 ISHTAR_SLUGS = { - "document-editor": ["editor"], + "document-publisher": ["publisher"], } SRID = 4326 # WGS84 - World diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index 039c03e76..127791dd1 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1312,10 +1312,10 @@ class DocumentForm(forms.ModelForm, CustomForm, ManageOldType): reverse_lazy( 'autocomplete-organization', args=[models.organization_type_pks_lazy( - settings.ISHTAR_SLUGS["document-editor"])]), + settings.ISHTAR_SLUGS["document-publisher"])]), limit={ 'organization_type': [models.organization_type_pks_lazy( - settings.ISHTAR_SLUGS["document-editor"])]}, + settings.ISHTAR_SLUGS["document-publisher"])]}, tips=models.get_publisher_label, associated_model=models.Organization), validators=[models.valid_id(models.Organization)], required=False) @@ -1619,10 +1619,10 @@ class DocumentSelect(HistorySelect): reverse_lazy( 'autocomplete-organization', args=[models.organization_type_pks_lazy( - settings.ISHTAR_SLUGS["document-editor"])]), + settings.ISHTAR_SLUGS["document-publisher"])]), limit={ 'organization_type': [models.organization_type_pks_lazy( - settings.ISHTAR_SLUGS["document-editor"])]}, + settings.ISHTAR_SLUGS["document-publisher"])]}, tips=models.get_publisher_label, associated_model=models.Organization), validators=[models.valid_id(models.Organization)]) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 807bbc64f..32ae95594 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1853,7 +1853,7 @@ def get_responsible_planning_service_label(): def get_publisher_label(): if apps.ready: lbls = [] - for key in settings.ISHTAR_SLUGS["document-editor"]: + for key in settings.ISHTAR_SLUGS["document-publisher"]: lbl = get_general_type_label(OrganizationType, key) if lbl: lbls.append(lbl) -- cgit v1.2.3