Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

标签关联问题 #262

Closed
yydance opened this issue May 9, 2019 · 4 comments
Closed

标签关联问题 #262

yydance opened this issue May 9, 2019 · 4 comments

Comments

@yydance
Copy link

yydance commented May 9, 2019

点击一些标签关联的文章会有报错,跟标签关联的文章"read more",返回等功能上都会报错

_dict = self.func(*resolved_args, **resolved_kwargs)
File "/data/codes/DjangoBlog/blog/templatetags/blog_tags.py", line 151, in load_sidebar
s = [t for t in [(t, t.get_article_count()) for t in tags] if t[1] > 0]
File "/data/codes/DjangoBlog/blog/templatetags/blog_tags.py", line 151, in 
s = [t for t in [(t, t.get_article_count()) for t in tags] if t[1] > 0]
TypeError: '>' not supported between instances of 'str' and 'int'

又来给楼主添堵了 @liangliangyy

@yydance
Copy link
Author

yydance commented May 9, 2019

似乎跟登录相关,好奇怪,登录后点击并没什么异常

@liangliangyy
Copy link
Owner

大概知道了,可能是cache_decorator 这个方法的bug. 我晚点研究下.另谢谢你的回复.

@yydance
Copy link
Author

yydance commented May 9, 2019

楼主太客气了,都没谢谢楼主开源的博客呢,我就是个运维,在学django框架,借楼主的博客,有空的话就看看代码逻辑学习下

@liangliangyy
Copy link
Owner

@Half-SRE 已修复。

hermanzhaozzzz pushed a commit to hermanzhaozzzz/DjangoBlog that referenced this issue Aug 15, 2021
hermanzhaozzzz pushed a commit to hermanzhaozzzz/DjangoBlog that referenced this issue Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants