Django Admin Inline Paginator
The "Django Admin Inline Paginator" is simple way to paginate your inline in django admin
If you use or like the project, click Star and Watch to generate metrics and i evaluate project continuity.
Install:
pip install django-admin-inline-paginator
Usage:
-
Add to your INSTALLED_APPS, in settings.py:
INSTALLED_APPS = [ ... 'django_admin_inline_paginator', ... ] -
Create your model inline:
from django_admin_inline_paginator.admin import TabularInlinePaginated class ModelWithFKAdminInline(TabularInlinePaginated): fields = (...) per_page = 1 model = ModelWithFK -
Create main model admin and use inline:
@register(YourModel) class YourModelAdmin(ModelAdmin): fields = (...) inlines = (ModelWithFKAdminInline, ) model = YourModel
Advanced Usage:
-
Paginate multiples inlines:
class ModelWithFKInline(TabularInlinePaginated): fields = ('name', 'active') per_page = 2 model = ModelWithFK pagination_key = 'page-model' # make sure it's unique for page inline class AnotherModelWithFKInline(TabularInlinePaginated): fields = ('name', 'active') per_page = 2 model = AnotherModelWithFK pagination_key = 'page-another-model' # make sure it's unique for page inline -
Use previous inlines
@register(YourModel) class YourModelAdmin(ModelAdmin): fields = (...) inlines = (ModelWithFKAdminInline, AnotherModelWithFKInline) model = YourModel
Images:
Need a Maintainer
In the last months i don't have much time, health problemas, change of country and others problems.
i have some surgeries for first part of 2022, and all of my current project don't use django-admin.
for these reasons, i need a help for a project continuation!!
Metadata
Release files for django-admin-inline-paginator 0.4.0
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-0.4.0.tar.gz | 7.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_inline_paginator-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / django-admin-inline-paginator-0.4.0.tar.gz
| Download URL | django-admin-inline-paginator-0.4.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1558b468d347e965c4d25be7f546da6682ea03d95098ae37b90c926edd491b1
|
|
BLAKE2b-256 checksum How to use checksums |
7eeaf599112f5a40d5876155aa0df8ec5013e7a1864a061323b9b7d2d675d988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / django_admin_inline_paginator-0.4.0-py3-none-any.whl
| Download URL | django_admin_inline_paginator-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63b2e13dca6b0933f4b7a4d3262c7cb31db8cda19ad005bcbc1c29bba0e95a1a
|
|
BLAKE2b-256 checksum How to use checksums |
dd1ca32ec8947e0704624fe54e8dbb4efc8dc1f7afd9439fec79ac8bcb82da32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for django-admin-inline-paginator 0.4.0
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.