提供“按”筛选的简单列表筛选器为空。

django-isnull-list-filter的Python项目详细描述


https://badge.fury.io/py/django-isnull-list-filter.svghttps://travis-ci.org/petrdlouhy/django-isnull-list-filter.svg?branch=masterhttps://codecov.io/gh/petrdlouhy/django-isnull-list-filter/branch/master/graph/badge.svg

提供“按”筛选的简单列表筛选器为空。

快速启动

安装django isnull list_filter:

pip install django-isnull-list-filter

或使用开发版本:

pip install -e git+https://github.com/PetrDlouhy/django-isnull-list-filter#egg=django-isnull-list-filter

直接在管理员中使用:

fromisnull_filterimportisnull_filterclassMyAdmin(admin.ModelAdmin):list_filter=(isnull_filter('author'),# Just set the fieldisnull_filter('author',_("Hasn't got author")),# Or you can override the default filter title)

功能

  • 可用于:
    • 简单字段
    • 外键域
    • 相关的外键域
    • manytomanyfield
    • onetoonefield
  • 可以覆盖默认标题

运行测试

代码真的有用吗?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

学分

作者:

  • 彼得卢赫

用于呈现此包的工具:

历史记录

0.1.0(2017-04-26)

  • pypi上的第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
隐写术中随机lsb位的java访问   java如何使用GZIP压缩Http Post正文   java Mockito的when()不是stubing超类的方法   java安卓:片段中的Setter&在recycleServiceAdapter中获取字符串   用JDBC进行简单的客户端中间件仿真   JavaF:param返回null?   Java413语音错误   java获取子文档中的数据   启用持久性的java嵌入式HornetQ无法使用编程配置启动   运行spring引导jar工件时出现java“在METAINF/spring.factories中找不到自动配置类”错误   java如何格式化Spring引导的GET请求中的对象   swing Java填充自定义形状   Java仅在超类中处理序列化   在java应用程序中使用ftp4j库下载/上载时发生FTP错误   java准备语句作为sql参数