diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 19:32:15 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 19:32:15 +0100 | 
| commit | 0b8e5be283b27a968829bd06f7bae767bde12ef5 (patch) | |
| tree | 28ed72fed53627c45f70328bd1df7be504530414 | |
| parent | 4f88d76377141c04ec4fa467b0bd207cc9e939df (diff) | |
| download | Ishtar-0b8e5be283b27a968829bd06f7bae767bde12ef5.tar.bz2 Ishtar-0b8e5be283b27a968829bd06f7bae767bde12ef5.zip  | |
Search vector: fix null parent vectors
| -rw-r--r-- | ishtar_common/models.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 86191c0ef..eb84f8a7e 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1072,7 +1072,7 @@ class FullSearch(models.Model):              if hasattr(parent, 'all'):  # m2m                  for p in parent.all():                      search_vectors.append(p.search_vector) -            else: +            elif parent:                  search_vectors.append(parent.search_vector)          if self.BASE_SEARCH_VECTORS:  | 
