diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-29 11:12:07 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:27 +0200 |
commit | 2adf65aad9a99158da6eef7468dde7badd434b1e (patch) | |
tree | 239064507748fcde0dc8b1f6bdab7ebcbf2ed68e /archaeological_operations/forms.py | |
parent | aab04bcf162d1264f7612b729a0dfe3177f24d3f (diff) | |
download | Ishtar-2adf65aad9a99158da6eef7468dde7badd434b1e.tar.bz2 Ishtar-2adf65aad9a99158da6eef7468dde7badd434b1e.zip |
Document templates: adapt models to manage labels
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}) |