Pep8
This commit is contained in:
parent
4424b3b971
commit
426e27fbec
1 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from django.utils.encoding import force_text
|
|
||||||
try:
|
try:
|
||||||
from django.utils.encoding import force_text as force_unicode_or_text
|
from django.utils.encoding import force_text as force_unicode_or_text
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -25,7 +24,6 @@ class PostIndex(get_index_base()):
|
||||||
# category_ids = indexes.MultiValueField(null=True)
|
# category_ids = indexes.MultiValueField(null=True)
|
||||||
# category_titles = indexes.MultiValueField(null=True)
|
# category_titles = indexes.MultiValueField(null=True)
|
||||||
|
|
||||||
|
|
||||||
def get_keywords(self, post):
|
def get_keywords(self, post):
|
||||||
return ','.join(post.get_keywords())
|
return ','.join(post.get_keywords())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue