diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-26 16:03:45 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-26 16:03:45 +0200 | 
| commit | 6ff0df3f163b04d43ccd5bca1f951bdf97c7954e (patch) | |
| tree | bded412029bc60e8cf4f6e2ef3eaa3b0f0932ab2 | |
| parent | 150b5672f00ba29a51d02964b19d81b061f32720 (diff) | |
| download | Ishtar-6ff0df3f163b04d43ccd5bca1f951bdf97c7954e.tar.bz2 Ishtar-6ff0df3f163b04d43ccd5bca1f951bdf97c7954e.zip | |
Base finds: fix index initialization
| -rw-r--r-- | archaeological_finds/models_finds.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index c39dfd0b5..12f78e64d 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -225,12 +225,12 @@ class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms):          profile = get_current_profile()          if profile.find_index == u'O':              operation = self.context_record.operation -            q = Find.objects \ -                .filter(base_finds__context_record__operation=operation) +            q = BaseFind.objects \ +                .filter(context_record__operation=operation)          elif profile.find_index == u'CR':              cr = self.context_record -            q = Find.objects \ -                .filter(base_finds__context_record=cr) +            q = BaseFind.objects \ +                .filter(context_record=cr)          else:              return False          if self.pk: | 
