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 | 91d7702aea6f93c9f41a594b0feb9708587c23b1 (patch) | |
tree | 28ed72fed53627c45f70328bd1df7be504530414 /ishtar_common | |
parent | aefd99c66f530481b6e89fbdbaa9f12368b00607 (diff) | |
download | Ishtar-91d7702aea6f93c9f41a594b0feb9708587c23b1.tar.bz2 Ishtar-91d7702aea6f93c9f41a594b0feb9708587c23b1.zip |
Search vector: fix null parent vectors
Diffstat (limited to 'ishtar_common')
-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: |