Skip to content

Commit

Permalink
Update files/zh-cn/learn/server-side/express_nodejs/displaying_data/b…
Browse files Browse the repository at this point in the history
…ookinstance_detail_page_and_challenge/index.md
  • Loading branch information
yin1999 authored Oct 11, 2024
1 parent 73b2955 commit 93aa699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ block content
要完成这一挑战,你必须:

1.*书本实例详细信息*页面中将变量 `due_back` 替换为 `due_back_formatted`
1.*书本实例详情*页面中将变量 `due_back` 替换为 `due_back_formatted`
2. 更新作者 `Author` 模型以添加寿命虚拟属性。寿命应类似于:_date_of_birth - date_of_death_,这两个值的格式与 `BookInstance.due_back_formatted` 的日期格式相同。
3. 在当前显示使用 `date_of_birth``date_of_death` 的所有视图中使用 `Author.lifespan`

Expand Down

0 comments on commit 93aa699

Please sign in to comment.