Commit b7c24ed4 by Thomas Lottermann

Group and owner can be null. The index must support this!

parent 51019fcc
......@@ -13,8 +13,8 @@ class ArticleIndex(indexes.SearchIndex, indexes.Indexable):
other_read = indexes.BooleanField(model_attr='other_read',default=False)
group_read = indexes.BooleanField(model_attr='group_read',default=False)
owner_id = indexes.IntegerField(model_attr='owner__id')
group_id = indexes.IntegerField(model_attr='group__id')
owner_id = indexes.IntegerField(model_attr='owner__id', null=True)
group_id = indexes.IntegerField(model_attr='group__id', null=True)
def get_model(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment