{ "info": { "author": "Andrey Novikov", "author_email": "novikov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Django admin date range filter\n\n[![Build Status](https://travis-ci.org/andreynovikov/django-daterangefilter.svg?branch=master)](https://travis-ci.org/andreynovikov/django-daterangefilter)\n[![GitHub release](https://img.shields.io/github/release/andreynovikov/django-daterangefilter.svg)](https://github.com/andreynovikov/django-daterangefilter/releases/latest)\n[![PyPI release](https://img.shields.io/pypi/v/django-daterangefilter.svg)](https://pypi.org/project/django-daterangefilter/)\n[![Python version](https://img.shields.io/pypi/pyversions/django-daterangefilter.svg)](https://pypi.org/project/django-daterangefilter/)\n[![GitHub issues](https://img.shields.io/github/issues/andreynovikov/django-daterangefilter.svg)](https://github.com/andreynovikov/django-daterangefilter/issues)\n[![Code quality](https://img.shields.io/codacy/grade/e90b9f21941a4d8c93edb4a58caa3667.svg)](https://www.codacy.com/app/novikov/django-daterangefilter)\n[![Coverage](https://img.shields.io/codacy/coverage/e90b9f21941a4d8c93edb4a58caa3667.svg)](https://www.codacy.com/app/novikov/django-daterangefilter)\n[![GitHub license](https://img.shields.io/github/license/andreynovikov/django-daterangefilter.svg)](LICENSE)\n\nApplication adds three Django admin list filters: ```DateRangeFilter```, ```PastDateRangeFilter``` and ```FutureDateRangeFilter```. These filters let user filter models by date range. ```PastDateRangeFilter``` and ```FutureDateRangeFilter``` add quick selection of predefined date ranges. Filters can be applied to any model date fields. Application supports default Django admin theme and [Suit theme](https://github.com/darklow/django-suit).\n\n![Admin screenshot](https://raw.githubusercontent.com/andreynovikov/django-daterangefilter/master/screenshot-admin.png)\n\n## Requirements\n\n* Python 2.7+ or Python 3.3+\n* Django 1.9+\n\n## Installation\n\nInstall ```django-daterangefilter``` using pip:\n\n```shell\npip install django-daterangefilter\n```\n\nAdd ```daterangefilter``` to ```INSTALLED_APPS```. Example:\n\n```python\nINSTALLED_APPS = (\n ...\n 'daterangefilter',\n ...\n)\n```\n\nApplication uses static files so do not forget to issue ```collectstatic``` management command in production environment.\n\n## Example usage\n\nin admin.py:\n\n```python\nfrom django.contrib import admin\nfrom daterangefilter.filters import PastDateRangeFilter, FutureDateRangeFilter\n\n@admin.register(Post)\nclass PostAdmin(admin.ModelAdmin):\n list_filter = [\n ('created_at', PastDateRangeFilter), ('publish_at', FutureDateRangeFilter)\n ]\n```\n\n## Advanced usage\n\nPredefined ranges can be completely redefined by overriding ```_past_ranges.html``` and ```_future_ranges.html``` templates.\nTake into account that these templates are inserted in the middle of the javascript code and may contain nothing but ranges\ndefinition. For more examples on using ```moment``` library refer to [library documentation](https://momentjs.com/docs/#/manipulating/).\n\n## Credits\n\nFilter widget uses a great JavaScript date range picker component - [Date Range Picker](https://github.com/dangrossman/daterangepicker) by Dan Grossman.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andreynovikov/django-daterangefilter/tree/master", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-daterangefilter", "package_url": "https://pypi.org/project/django-daterangefilter/", "platform": "", "project_url": "https://pypi.org/project/django-daterangefilter/", "project_urls": { "Homepage": "https://github.com/andreynovikov/django-daterangefilter/tree/master", "Source": "https://github.com/andreynovikov/django-daterangefilter/", "Tracker": "https://github.com/andreynovikov/django-daterangefilter/issues" }, "release_url": "https://pypi.org/project/django-daterangefilter/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Date range filter for Django admin", "version": "1.0.0" }, "last_serial": 4721410, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b472b1b74815de90d413a406f94cb380", "sha256": "f0a0e874df05ae677b881e4bd3ee04af94fa8fd4fb78a7d645278fb78cbee5bc" }, "downloads": -1, "filename": "django_daterangefilter-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b472b1b74815de90d413a406f94cb380", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11812, "upload_time": "2018-12-13T16:13:53", "url": "https://files.pythonhosted.org/packages/40/2e/a38ef141ad3ec808f0b73aab454b86dc3aa7bdd417c96c2dfeb063d11f90/django_daterangefilter-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84c736f3de9ca604a8ad93245ee101d8", "sha256": "51240fe5efa4ffa335632c87bfb088e7cb394343d84a6860773d10c1153c7448" }, "downloads": -1, "filename": "django-daterangefilter-0.1.0.tar.gz", "has_sig": false, "md5_digest": "84c736f3de9ca604a8ad93245ee101d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8458, "upload_time": "2018-12-13T16:13:56", "url": "https://files.pythonhosted.org/packages/ee/2f/a41b5020659b1b24a7f349504e054304fa3b1c9a0503b5082afd881eeaf6/django-daterangefilter-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "58e82aab92a126130d8bb38486f72e6e", "sha256": "4e53f0839c534278b37e6ce8d5669cefb63fb5706523b215c1fa32ab23a944ec" }, "downloads": -1, "filename": "django_daterangefilter-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "58e82aab92a126130d8bb38486f72e6e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11850, "upload_time": "2018-12-13T16:37:11", "url": "https://files.pythonhosted.org/packages/3f/0d/edad52b23783792755837d4baa465b7a2f2af0ea14862e9633b790f6c32b/django_daterangefilter-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b96a2d4bdb5a1ebc76b6f4feecadce6", "sha256": "85cf164e4eb2e6b7cd2653b5748bf8d84e16cd3059c8466b4f6d4851bfc1feb9" }, "downloads": -1, "filename": "django-daterangefilter-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9b96a2d4bdb5a1ebc76b6f4feecadce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8513, "upload_time": "2018-12-13T16:37:13", "url": "https://files.pythonhosted.org/packages/6b/5b/2f439b3673592f68a902a7c744b9166ec68835d0f1673812af26afeee4a3/django-daterangefilter-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "98a83bb93c113fecb12fdc2463a62594", "sha256": "a7f3d9e08f9558a311b6d64bbabd8cbd58692b1529b5a7844a6d8dd85fe8fde7" }, "downloads": -1, "filename": "django_daterangefilter-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "98a83bb93c113fecb12fdc2463a62594", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11944, "upload_time": "2018-12-15T18:43:32", "url": "https://files.pythonhosted.org/packages/f8/b9/c30adb62c773b745be8371cb893b78ebded8bb82e7c89d2e50df02f50fb9/django_daterangefilter-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "58e18d3cb35daf1f5c9a38536225bbe6", "sha256": "11aef911d8ffee845830371081f4da1f4b50523f2ad0a1836ed0dfb81370e526" }, "downloads": -1, "filename": "django-daterangefilter-0.1.2.tar.gz", "has_sig": false, "md5_digest": "58e18d3cb35daf1f5c9a38536225bbe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8707, "upload_time": "2018-12-15T18:43:33", "url": "https://files.pythonhosted.org/packages/5a/9f/cf2d4b8e9fb521abd59f33082bc8d7b491053543060743e92b8cec79eba5/django-daterangefilter-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3b37ddea1dd37ea6695f940c0cb71546", "sha256": "09a59228555683035032608f5ef60caf76694bb10de11764d5d476cd4ec10e94" }, "downloads": -1, "filename": "django_daterangefilter-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b37ddea1dd37ea6695f940c0cb71546", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12205, "upload_time": "2018-12-17T16:22:51", "url": "https://files.pythonhosted.org/packages/dd/ee/087fac519502699c7594eac6745b70c7aff8146b0398605b942c565d3153/django_daterangefilter-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "172e8e2e46a8092c01b44d53b5b199fe", "sha256": "749afbb07ff05c9ef3d753fc6a4b21ec8860deb4f0fb9fba4c8180d473ba435b" }, "downloads": -1, "filename": "django-daterangefilter-0.2.0.tar.gz", "has_sig": false, "md5_digest": "172e8e2e46a8092c01b44d53b5b199fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8936, "upload_time": "2018-12-17T16:22:53", "url": "https://files.pythonhosted.org/packages/04/91/ab18480d3ea61dbe7008d8b4820dee5a2fd55c79fac18c8e0befb0b612ba/django-daterangefilter-0.2.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "4aabbaf9f446d2be33f3ef81445d316d", "sha256": "abba0199e77decbf01edd5b3ce03e262488c294e9b3b9aab9431a609fdb1f25d" }, "downloads": -1, "filename": "django_daterangefilter-0.8.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4aabbaf9f446d2be33f3ef81445d316d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 111097, "upload_time": "2018-12-25T14:58:51", "url": "https://files.pythonhosted.org/packages/77/36/3fa3b86b0cd8bd4f0d1f2d784043151f844ca59568fecb83a3f997faf150/django_daterangefilter-0.8.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "292bfff7483adee95e44dee9563a2430", "sha256": "b46401ea0d53a393b76ebe6377865c41627682e36779a7032e96c79ffd8cd3d2" }, "downloads": -1, "filename": "django-daterangefilter-0.8.0.tar.gz", "has_sig": false, "md5_digest": "292bfff7483adee95e44dee9563a2430", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 105951, "upload_time": "2018-12-25T14:58:53", "url": "https://files.pythonhosted.org/packages/21/80/34a7c07c2a36c456133b3c55abad0d99c5badadb5c54077079f2c1b9eafb/django-daterangefilter-0.8.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "dad94916067be7698b23e36b556958de", "sha256": "ece3641e6287b118b517bbcb34ad996b41f8be3ff8cdac05302bfdc688107c34" }, "downloads": -1, "filename": "django_daterangefilter-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dad94916067be7698b23e36b556958de", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 111197, "upload_time": "2019-01-21T12:33:22", "url": "https://files.pythonhosted.org/packages/d4/06/dd4a34a0d818a5fd7177ac7e7fd923e31da407ee98160e6906e9bae2e674/django_daterangefilter-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdaddf74d188c8d573237f495c6f18a1", "sha256": "56547903d5b804e57486ed4759a8fd56d710a3ec01458b753300ca190d4e27c0" }, "downloads": -1, "filename": "django-daterangefilter-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cdaddf74d188c8d573237f495c6f18a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106092, "upload_time": "2019-01-21T12:33:24", "url": "https://files.pythonhosted.org/packages/53/80/e67ae3e768641cdbf87c1b18ee627d4de94b62ed8fd38c45e2609556d605/django-daterangefilter-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dad94916067be7698b23e36b556958de", "sha256": "ece3641e6287b118b517bbcb34ad996b41f8be3ff8cdac05302bfdc688107c34" }, "downloads": -1, "filename": "django_daterangefilter-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dad94916067be7698b23e36b556958de", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 111197, "upload_time": "2019-01-21T12:33:22", "url": "https://files.pythonhosted.org/packages/d4/06/dd4a34a0d818a5fd7177ac7e7fd923e31da407ee98160e6906e9bae2e674/django_daterangefilter-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cdaddf74d188c8d573237f495c6f18a1", "sha256": "56547903d5b804e57486ed4759a8fd56d710a3ec01458b753300ca190d4e27c0" }, "downloads": -1, "filename": "django-daterangefilter-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cdaddf74d188c8d573237f495c6f18a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 106092, "upload_time": "2019-01-21T12:33:24", "url": "https://files.pythonhosted.org/packages/53/80/e67ae3e768641cdbf87c1b18ee627d4de94b62ed8fd38c45e2609556d605/django-daterangefilter-1.0.0.tar.gz" } ] }