Fix bugs in search (string conversion)
This commit is contained in:
parent
5077ab0a30
commit
919e9a5575
|
@ -44,7 +44,10 @@ class Search(Index):
|
|||
|
||||
posts = []
|
||||
for post_id in post_list:
|
||||
try:
|
||||
post = Post.objects.get(pk=post_id)
|
||||
except:
|
||||
continue
|
||||
if not post is None:
|
||||
posts.append(post)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user