V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
warmheartli
V2EX  ›  Python

谁知道 django 有没有强大一些的筛选器插件

  •  
  •   warmheartli ·
    lcdevelop · 2016-12-12 14:27:01 +08:00 · 2329 次点击
    这是一个创建于 2663 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如我有一个 table 有 10 个列分别是 column1 、 column2 、……、 column10
    我想用哪一列筛就能用哪一列,想用几列就用几列,可以动态添加条件
    5 条回复    2016-12-15 09:03:26 +08:00
    onefouroo
        1
    onefouroo  
       2016-12-12 22:58:15 +08:00 via iPhone
    貌似 django-admin 没有那么自由。 mark 一下。坐等老司机指点。
    zhu327
        2
    zhu327  
       2016-12-12 23:02:44 +08:00
    warmheartli
        3
    warmheartli  
    OP
       2016-12-13 08:53:32 +08:00
    @zhu327 这个还是要在代码里写死哪些域作为过滤器,我希望是动态添加
    zhu327
        4
    zhu327  
       2016-12-13 09:45:13 +08:00
    @warmheartli 你把所有的列都作为筛选条件,然后想用哪一列作为筛选就用哪一列,可以先看看文档
    warmheartli
        5
    warmheartli  
    OP
       2016-12-15 09:03:26 +08:00
    @zhu327 这个我知道,我的需求就是这样的,我是希望有那么一个插件,能让我随意点选用哪一列作为筛选,有没有这样的插件
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1262 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:53 · PVG 01:53 · LAX 10:53 · JFK 13:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.