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 | 84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa (patch) | |
tree | 239064507748fcde0dc8b1f6bdab7ebcbf2ed68e /ishtar_common/forms.py | |
parent | 09b6543e51e34164479986284b6c769c569ff1af (diff) | |
download | Ishtar-84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa.tar.bz2 Ishtar-84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa.zip |
Document templates: adapt models to manage labels
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 3a696911d..f992ace38 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -890,7 +890,7 @@ class DocumentGenerationForm(forms.Form): super(DocumentGenerationForm, self).__init__(*args, **kwargs) self.fields['document_template'].choices = \ models.DocumentTemplate.get_tuples( - dct={'associated_object_name': self._associated_object_name}) + dct={'associated_model__klass': self._associated_object_name}) def save(self, object_pk): try: |