diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 15:00:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-13 15:00:23 +0200 |
commit | 471532c76c7133dd96f5e3e3906988f024515539 (patch) | |
tree | 4faf3a7f10c73a89194a981a51a6a1e98fda5696 | |
parent | 0747a4c992c03d917a7b0cf31877e1dd95187f08 (diff) | |
download | Ishtar-471532c76c7133dd96f5e3e3906988f024515539.tar.bz2 Ishtar-471532c76c7133dd96f5e3e3906988f024515539.zip |
Fix operation test
-rw-r--r-- | archaeological_operations/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index e0e5d5313..c32c050fd 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -616,7 +616,9 @@ def create_orga(user): def create_operation(user, orga=None, values={}): - dct = {'year': 2010, 'operation_type_id': 1, + operation_type = models.OperationType.objects.get( + txt_idx="arch_diagnostic") + dct = {'year': 2010, 'operation_type_id': operation_type.pk, 'history_modifier': user} dct.update(values) if orga: |