开发者

django: cannot import name SimpleListFilter

I have the code form django docs, but this will output an er开发者_如何学运维ror.

ImportError: cannot import name SimpleListFilter

I am using django 1.3

Anyone knows what's problem with this import?

Thanks!


I believe that SimpleListFilter was added in Django 1.4. If you look at the documentation for Django 1.3 Admin no mention is made of it.


You're looking at the dev docs. If you jump to the top of the page and click on 1.3, you'll see that model isn't available in your version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜