Django Book 翻译
菜单>:
TOC
返回
原文:
As it stands now, the change list for our books shows only the string representation of the model we added to its ``__str__`` . This works fine for just a few books, but if we had hundreds or thousands of books, it would be very hard to locate a single needle in the haystack. However, we can easily add some display, searching, and filtering functions to this interface. Change the ``Admin`` declaration as follows:
翻译:
目前为止我们书的改变列表只显示一个字符串,这个字符串是在模式中的 ``__str__`` 中加入来代表这个模式的。这种方式在只有几本书的情况下工作得很好,但如果有成百上千中书的时候,找一本书就像大海捞针。但是我们可以很容易地在界面中加入搜索和过滤功能。改变 ``Admin`` 声明如下:
备注:
译者: