Skip to content

Commit

Permalink
validation of the value to be used for index
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 9, 2016
1 parent f551b9b commit 21fa8cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/appier_extras/parts/admin/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def build_index(self, use_class = True):
# new search index entry with the information of the entity
for name in names:
value = self[name]
if not value: continue
search.Search.create_index(
value,
self._id,
Expand Down

0 comments on commit 21fa8cb

Please sign in to comment.