Skip to content

Commit

Permalink
Fixed flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Macartur Sousa <[email protected]>
  • Loading branch information
macartur committed May 19, 2016
1 parent 99ef078 commit 56e4837
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/colab_noosfero/search_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


class NoosferoCommunityIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.EdgeNgramField(document=True, use_template=True, stored=False)
text = indexes.EdgeNgramField(document=True,
use_template=True, stored=False)
title = indexes.EdgeNgramField(model_attr='name')
description = indexes.EdgeNgramField(model_attr='description', null=True)
url = indexes.EdgeNgramField(model_attr='url', indexed=False)
Expand Down Expand Up @@ -49,7 +50,8 @@ def prepare_type(self, obj):

class NoosferoCommentIndex(indexes.SearchIndex, indexes.Indexable):

text = indexes.EdgeNgramField(document=True, use_template=True, stored=False)
text = indexes.EdgeNgramField(document=True,
use_template=True, stored=False)
type = indexes.EdgeNgramField()
title = indexes.EdgeNgramField(model_attr='title')
username = indexes.EdgeNgramField(model_attr='username', null=True)
Expand All @@ -71,7 +73,8 @@ def prepare_type(self, obj):

class NoosferoArticleIndex(indexes.SearchIndex, indexes.Indexable):

text = indexes.EdgeNgramField(document=True, use_template=True, stored=False)
text = indexes.EdgeNgramField(document=True,
use_template=True, stored=False)
type = indexes.EdgeNgramField()
title = indexes.EdgeNgramField(model_attr='title')
username = indexes.EdgeNgramField(model_attr='username', null=True)
Expand All @@ -98,12 +101,13 @@ def prepare_type(self, obj):

class NoosferoSoftwareCommunitiesIndex(indexes.SearchIndex, indexes.Indexable):

text = indexes.EdgeNgramField(document=True, use_template=True, stored=False)
text = indexes.EdgeNgramField(document=True,
use_template=True, stored=False)
type = indexes.EdgeNgramField()
icon_name = indexes.EdgeNgramField()
finality = indexes.EdgeNgramField(model_attr='finality')
repository_link = indexes.EdgeNgramField(model_attr='repository_link',
null=True)
null=True)
features = indexes.EdgeNgramField(model_attr='features', null=True)
license = indexes.EdgeNgramField(model_attr='license_info', null=True)
tags = indexes.MultiValueField()
Expand Down

0 comments on commit 56e4837

Please sign in to comment.