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 /archaeological_operations/tests.py | |
parent | 09b6543e51e34164479986284b6c769c569ff1af (diff) | |
download | Ishtar-84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa.tar.bz2 Ishtar-84dc4fd378fe6e31bc7c5b19aea266fbeef0f5fa.zip |
Document templates: adapt models to manage labels
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 8eb2f361a..eba0d296a 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -2159,9 +2159,12 @@ class RegisterTest(TestCase, OperationInitTest): '../archaeological_operations/tests/document_reference.odt', 'rb') template = SimpleUploadedFile(tpl.name, tpl.read()) + model, __ = ImporterModel.objects.get_or_create( + klass='archaeological_operations.models.AdministrativeAct' + ) doc = DocumentTemplate.objects.create( name="Test", - associated_object_name=DocumentTemplate.CLASSNAMES[0][0], + associated_model=model, available=True, template=template ) |