Django Admin Inline Paginator Plus ⏩
🍴 This is a forked and updated version based on original library django-admin-inline-paginator.
As for 10.07.2024 nobody took responsibility, so I decided to take it since we need additional functionlity like AJAX for pagination.
The "Django Admin Inline Paginator Plus" is simple way to paginate your inline in django admin
To keep Django ecosystem fresh and updated, please share your love and support, click Star 🫶
Features
- Easy Inline Pagination: Quickly paginate inlines in the Django admin.
- AJAX Support: Smooth and dynamic pagination without page reloads with
htmx. - Multiple Inline Pagination: Manage multiple paginated inlines seamlessly.
Here's a screenshot of the paginated inlines in action:
Install:
Install the package via pip:
pip install django-admin-inline-paginator-plus
Usage:
-
Add to your INSTALLED_APPS, in settings.py:
INSTALLED_APPS = [ ... 'django_admin_inline_paginator_plus', ... ]
-
Create your model inline:
You can use
TabularInlinePaginatedotStackedInlinePaginated. In our example we useTabularInlinePaginated.from django_admin_inline_paginator_plus.admin import TabularInlinePaginated class ModelWithFKAdminInline(TabularInlinePaginated): model = ModelWithFK fields = (...) per_page = 5
-
Create main model admin and use inline:
@register(YourModel) class YourModelAdmin(ModelAdmin): model = YourModel fields = (...) inlines = (ModelWithFKAdminInline, )
Advanced Usage:
-
Paginate multiples inlines:
from django_admin_inline_paginator_plus.admin import TabularInlinePaginated, StackedInlinePaginated class ModelWithFKInline(TabularInlinePaginated): model = ModelWithFK fields = ('name', 'active') per_page = 2 pagination_key = 'page-model' # make sure it's unique for page inline class AnotherModelWithFKInline(StackedInlinePaginated): model = AnotherModelWithFK fields = ('name', 'active') per_page = 2 pagination_key = 'page-another-model' # make sure it's unique for page inline
-
Use inlines from step 1. and add to your main model admin:
@register(YourModel) class YourModelAdmin(ModelAdmin): model = YourModel fields = (...) inlines = (ModelWithFKAdminInline, AnotherModelWithFKInline)
Metadata
Release files for django-admin-inline-paginator-plus 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_admin_inline_paginator_plus-0.1.5.tar.gz | 9.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_inline_paginator_plus-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / django_admin_inline_paginator_plus-0.1.5.tar.gz
| Download URL | django_admin_inline_paginator_plus-0.1.5.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8db247e50cd57ce41b071202eb4a4db23879574f436b60ca521a35aa3695877b
|
|
BLAKE2b-256 checksum How to use checksums |
6df9e0c467e872e7ea9bf4840b7d06822f0b4da207b53dba540b9ba1ada6fcca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / django_admin_inline_paginator_plus-0.1.5-py3-none-any.whl
| Download URL | django_admin_inline_paginator_plus-0.1.5-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bc2b4123025a0dcde1f7f6d5d5372a44a593e29da0c6b4c6da8150057d26f76
|
|
BLAKE2b-256 checksum How to use checksums |
f6a25718875cafde0bad4dfdf814835e47446f1d7fefd75d82eb1cc2f86094bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for django-admin-inline-paginator-plus 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.