From 84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Apr 2019 11:12:07 +0200 Subject: Document templates: adapt models to manage labels --- archaeological_operations/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations/forms.py') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index e3cdfeb4e..5cc544171 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -1673,7 +1673,7 @@ class DocumentGenerationAdminActForm(IshtarForm): self.obj = kwargs.pop('obj') super(DocumentGenerationAdminActForm, self).__init__(*args, **kwargs) self.fields['document_template'].choices = DocumentTemplate.get_tuples( - dct={'associated_object_name': + dct={'associated_model__klass': 'archaeological_operations.models.AdministrativeAct', 'acttypes__intented_to': self.document_type}) -- cgit v1.2.3