Django Book 翻译
菜单>:
TOC
返回
原文:
Imagine we had a ``last_accessed`` field on our ``Author`` object that we were using to keep track of the last time anybody looked at that author. The generic ``object_detail`` view, of course, wouldnt know anything about this field, but once again we could easily write a custom view to keep that field updated.
翻译:
想象一下我们在 ``Author`` 对象里有一个 ``last_accessed`` 字段,我们用这个字段来更正对author的最近访问时间。当然通用视图 ``object_detail`` 并不能处理 这个问题,我们可以很容易的写一个自定义的视图来更新这个字段。
备注:
译者: