Name | wagtail-rangefilter JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | Integrates django-admin-rangefilter into Wagtail's ModelAdmin |
upload_time | 2024-02-07 13:12:25 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
django
rangefilter
wagtail
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
# Wagtail Rangefilter
[![PyPI](https://img.shields.io/pypi/v/wagtail-rangefilter)](https://pypi.org/project/wagtail-rangefilter/)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Wagtail Rangefilter CI](https://github.com/wunderweiss/wagtail-rangefilter/actions/workflows/test.yml/badge.svg)](https://github.com/wunderweiss/wagtail-rangefilter/actions/workflows/test.yml)
Integrates [django-admin-rangefilter](https://pypi.org/project/django-admin-rangefilter/) into Wagtail's ModelAdmin
![Screenshot](https://raw.githubusercontent.com/wunderweiss/wagtail-rangefilter/main/.github/screenshot.png)
## Links
- [Documentation](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/README.md)
- [Changelog](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/CHANGELOG.md)
- [Contributing](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/CONTRIBUTING.md)
## Supported versions
- Python 3.8, 3.9, 3.10, 3.11
- Django 3.2, 4.2
- Wagtail 4.1, 5.1, 5.2, 6.0 (with external package [wagtail-modeladmin](https://pypi.org/project/wagtail-modeladmin/))
## Installation
**NOTE:** Starting with wagtail 5.0 you can install and use the external package [wagtail-modeladmin](https://pypi.org/project/wagtail-modeladmin/), with 6.0+ you have to use it.
```shell
pip install wagtail-rangefilter
```
Add this to your installed django applications:
```python
INSTALLED_APPS = [
...,
'wagtail_rangefilter',
'rangefilter',
...,
]
```
## Example usage
```python
# Starting with Wagtail 6.0, the external package "wagtail-modeladmin" is required:
# from wagtail_modeladmin.options import ModelAdmin
from wagtail.contrib.modeladmin.options import ModelAdmin
from wagtail_rangefilter.filters import DateRangeFilter, DateTimeRangeFilter
class ExampleAdmin(ModelAdmin):
...
list_filter = (("test_date", DateRangeFilter), ("test_datetime", DateTimeRangeFilter),)
...
```
## Development
```shell
pip install -e '.[testing]' -U
```
## Running the testapp
```shell
tox -e interactive
```
Alternative:
```shell
cp tests/local.py.example tests/local.py
python manage.py runserver
```
Raw data
{
"_id": null,
"home_page": null,
"name": "wagtail-rangefilter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "django,rangefilter,wagtail",
"author": null,
"author_email": "Stefan Hammer <stefan.hammer@wunderweiss.com>",
"download_url": "https://files.pythonhosted.org/packages/d7/8c/e46f08aed99a4892daf09966edcb25820c87c3f34d99c68945a840852d35/wagtail-rangefilter-0.2.1.tar.gz",
"platform": null,
"description": "# Wagtail Rangefilter\n\n[![PyPI](https://img.shields.io/pypi/v/wagtail-rangefilter)](https://pypi.org/project/wagtail-rangefilter/)\n[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![Wagtail Rangefilter CI](https://github.com/wunderweiss/wagtail-rangefilter/actions/workflows/test.yml/badge.svg)](https://github.com/wunderweiss/wagtail-rangefilter/actions/workflows/test.yml)\n\nIntegrates [django-admin-rangefilter](https://pypi.org/project/django-admin-rangefilter/) into Wagtail's ModelAdmin\n\n![Screenshot](https://raw.githubusercontent.com/wunderweiss/wagtail-rangefilter/main/.github/screenshot.png)\n\n## Links\n\n- [Documentation](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/README.md)\n- [Changelog](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/CHANGELOG.md)\n- [Contributing](https://github.com/wunderweiss/wagtail-rangefilter/blob/main/CONTRIBUTING.md)\n\n## Supported versions\n\n- Python 3.8, 3.9, 3.10, 3.11\n- Django 3.2, 4.2\n- Wagtail 4.1, 5.1, 5.2, 6.0 (with external package [wagtail-modeladmin](https://pypi.org/project/wagtail-modeladmin/))\n\n## Installation\n\n**NOTE:** Starting with wagtail 5.0 you can install and use the external package [wagtail-modeladmin](https://pypi.org/project/wagtail-modeladmin/), with 6.0+ you have to use it.\n\n```shell\npip install wagtail-rangefilter\n```\n\nAdd this to your installed django applications:\n```python\nINSTALLED_APPS = [\n ...,\n 'wagtail_rangefilter',\n 'rangefilter',\n ...,\n]\n```\n\n## Example usage\n\n```python\n# Starting with Wagtail 6.0, the external package \"wagtail-modeladmin\" is required:\n# from wagtail_modeladmin.options import ModelAdmin\nfrom wagtail.contrib.modeladmin.options import ModelAdmin\nfrom wagtail_rangefilter.filters import DateRangeFilter, DateTimeRangeFilter\n\nclass ExampleAdmin(ModelAdmin):\n ...\n list_filter = ((\"test_date\", DateRangeFilter), (\"test_datetime\", DateTimeRangeFilter),)\n ...\n\n```\n\n## Development\n\n```shell\npip install -e '.[testing]' -U\n```\n\n## Running the testapp\n\n```shell\ntox -e interactive\n```\n\nAlternative:\n```shell\ncp tests/local.py.example tests/local.py\npython manage.py runserver\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Integrates django-admin-rangefilter into Wagtail's ModelAdmin",
"version": "0.2.1",
"project_urls": {
"Bug Tracker": "https://github.com/wunderweiss/wagtail-rangefilter/issues",
"Changelog": "https://github.com/wunderweiss/wagtail-rangefilter/blob/main/CHANGELOG.md",
"Homepage": "https://github.com/wunderweiss/wagtail-rangefilter"
},
"split_keywords": [
"django",
"rangefilter",
"wagtail"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "033327dbff404bcc24c747b6219c28968c78a4d8abcaf346b2b46108f8b89457",
"md5": "a5163ca72bd867ff4c80cb6d05d2419d",
"sha256": "54bff60260f23340a3f8bc1728c5eb19462f2a83173e0349f3b061095da39bbd"
},
"downloads": -1,
"filename": "wagtail_rangefilter-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5163ca72bd867ff4c80cb6d05d2419d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5248,
"upload_time": "2024-02-07T13:12:19",
"upload_time_iso_8601": "2024-02-07T13:12:19.199207Z",
"url": "https://files.pythonhosted.org/packages/03/33/27dbff404bcc24c747b6219c28968c78a4d8abcaf346b2b46108f8b89457/wagtail_rangefilter-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d78ce46f08aed99a4892daf09966edcb25820c87c3f34d99c68945a840852d35",
"md5": "bafff3f27afbba056717d0d07f1b329e",
"sha256": "74fde188e13e44766f1e106c91be540ca1cdf032251f233d6b3e4ea7ecd57ace"
},
"downloads": -1,
"filename": "wagtail-rangefilter-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "bafff3f27afbba056717d0d07f1b329e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5375,
"upload_time": "2024-02-07T13:12:25",
"upload_time_iso_8601": "2024-02-07T13:12:25.679568Z",
"url": "https://files.pythonhosted.org/packages/d7/8c/e46f08aed99a4892daf09966edcb25820c87c3f34d99c68945a840852d35/wagtail-rangefilter-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-07 13:12:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wunderweiss",
"github_project": "wagtail-rangefilter",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "wagtail-rangefilter"
}