From 7a3da08eabf4767284b370e670e1953abb49973a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 15 Nov 2024 10:52:02 +0100 Subject: 🐛 fix permissions menu evaluation - fix forms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/forms_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/forms_common.py') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index cb7eb761a..1a04a38e9 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -1264,7 +1264,7 @@ class IshtarUserSelect(TableSelect): self.fields["person_types"].choices = models.PersonType.get_types() -class AccountFormSelection(forms.Form): +class AccountFormSelection(CustomForm, forms.Form): SEARCH_AND_SELECT = True form_label = _("Account search") associated_models = {"pk": models.IshtarUser} @@ -2915,7 +2915,7 @@ class AuthorForm(ManageOldType, NewItemForm): return new_item -class AuthorFormSelection(forms.Form): +class AuthorFormSelection(CustomForm, forms.Form): form_label = _("Author selection") NO_CUSTOM_FORM = True base_model = "author" -- cgit v1.2.3