diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-18 10:41:10 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-18 10:41:10 +0200 | 
| commit | 6a13834c173216a328168c421ad5d40723af8f11 (patch) | |
| tree | 806ec52fb97a1f47a01869c28a4769017b47bbfb | |
| parent | b4ac13179c5ec79c8293f2cfb243c4fea611fdc8 (diff) | |
| download | Ishtar-6a13834c173216a328168c421ad5d40723af8f11.tar.bz2 Ishtar-6a13834c173216a328168c421ad5d40723af8f11.zip | |
Finds: fix test intitialization
| -rw-r--r-- | archaeological_finds/tests.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 8d226e91d..1b61d49ca 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -106,7 +106,8 @@ class FindInit(ContextRecordInit):          default = {'label': "Base find"}          if not data_base.get('history_modifier'):              data_base['history_modifier'] = self.get_default_user() -        if not data_base.get('context_record'): +        if not data_base.get('context_record') \ +                or not data_base['context_record'].pk:              data_base['context_record'] = self.get_default_context_record()          default.update(data_base) | 
