Django Book 翻译
菜单>:
TOC
返回
原文:
With this in mind, you can start making higher-level abstractions of your views. Instead of thinking to yourself, This view displays a list of ``Event`` objects, and That view displays a list of ``BlogEntry`` objects, realize theyre both specific cases of A view that displays a list of objects, where the type of object is variable.
翻译:
了解这个以后,你可以开始创作高抽象的视图。更具体地说,比如这个视图显示一系列的 ``Event`` 对象,那个视图显示一系列的 ``BlogEntry`` 对象,并意识到它们都是一个用来显示一系列对象的视图的特例,而对象的类型其实就是一个变量。
备注:
译者: