Skip to content

Commit e953fb5

Browse files
author
yangxg
committed
更新 readme,修复不兼容 Python 2 的问题
1 parent 86e4d5b commit e953fb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ demo 分支是演示项目的分支代码。
133133

134134
- [20 - Django Pagination 完善分页](http://zmrenwu.com/post/37/)
135135

136-
- 21 - 统计各个分类下的文章数(撰写中)
136+
- [21 - 统计各个分类下的文章数](http://zmrenwu.com/post/38/)
137137

138-
- 22 - 标签云(撰写中)
138+
- [22 - 标签云](http://zmrenwu.com/post/39/)
139139

140140
- 23 - RSS 订阅(撰写中)
141141

blog/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_context_data(self, **kwargs):
4242
"""
4343

4444
# 首先获得父类生成的传递给模板的字典。
45-
context = super().get_context_data(**kwargs)
45+
context = super(IndexView, self).get_context_data(**kwargs)
4646

4747
# 父类生成的字典中已有 paginator、page_obj、is_paginated 这三个模板变量,
4848
# paginator 是 Paginator 的一个实例,

0 commit comments

Comments
 (0)