Registry / web-framework / django-admin-inline-paginator

django-admin-inline-paginator

JSON →
library0.4.0pypypi✓ verified 28d ago

The "Django Admin Inline Paginator" is a Python library designed to add pagination to inline forms within the Django administration interface. The latest version, 0.4.0, was released in April 2023. The original project is currently seeking maintainers, with development seemingly inactive, and a community-maintained fork (`django-admin-inline-paginator-plus`) has emerged to continue development and add new features.

pip install django-admin-inline-paginator
INSTALL
IMPORT
SIG · DJANGO-ADMIN-INLIN
D
django-admin-inline-paginator
web-frameworkpythonv0.4.0
Install
3.5s avg
Import
—
Disk
66MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.4MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 67MB
66MB installed
● package 66MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TabularInlinePaginated
✓ from django_admin_inline_paginator import TabularInlinePaginated
✗ from django_admin_inline_paginator import TabularInlinePaginated

To quickly integrate inline pagination, add `django_admin_inline_paginator` to your `INSTALLED_APPS`. Then, define your inline admin classes by inheriting from `TabularInlinePaginated` or `StackedInlinePaginated` and set the `per_page` attribute. Finally, include these paginated inlines in your main `ModelAdmin`.

from django.contrib import admin from django.db import models # Assuming you have a model named `YourModel` and another `ModelWithFK` # linked by a ForeignKey from ModelWithFK to YourModel. # Example Models: # class YourModel(models.Model): # name = models.CharField(max_length=100) # class ModelWithFK(models.Model): # your_model = models.ForeignKey(YourModel, on_delete=models.CASCADE) # name = models.CharField(max_length=100) # 1. Add 'django_admin_inline_paginator' to INSTALLED_APPS in settings.py # INSTALLED_APPS = [ # ..., # 'django_admin_inline_paginator', # ... # ] # 2. Create your model inline using TabularInlinePaginated from django_admin_inline_paginator.admin import TabularInlinePaginated class ModelWithFKAdminInline(TabularInlinePaginated): model = 'ModelWithFK' # Replace with your actual FK model fields = ('name',) per_page = 5 # Number of items per page # pagination_key = 'page-model' # Optional: required for multiple paginated inlines # 3. Register your main model admin and use the inline @admin.register('YourModel') # Replace with your actual main model class YourModelAdmin(admin.ModelAdmin): model = 'YourModel' fields = ('name',) inlines = (ModelWithFKAdminInline,)
Debug
Known issues
breakingThe original `django-admin-inline-paginator` project is no longer actively maintained by its original author, who is looking for new maintainers. Its last release was in April 2023. An actively maintained fork, `django-admin-inline-paginator-plus`, exists and offers new features, including AJAX pagination and broader compatibility with modern Django and Python versions. Users should consider using the `plus` fork for ongoing support and new features.
fix
Consider migrating to `django-admin-inline-paginator-plus` (pip install django-admin-inline-paginator-plus) for active development and new features.
affects: <=0.4.0
gotchaThe `django-admin-inline-paginator` package was last updated in April 2023 and officially requires Python >=3.3. However, newer versions of Django (e.g., Django 4.x, 5.x) require Python 3.8+ or higher. Using this original package with recent Django versions may lead to compatibility issues or unexpected behavior due to API changes over time.
fix
Ensure your Django and Python versions are compatible with the last release of this package (0.4.0, Python >=3.3). For modern Django/Python, the `django-admin-inline-paginator-plus` fork is recommended as it explicitly supports newer Django versions and Python >=3.8.
affects: <=0.4.0
gotchaThe `django-admin-inline-paginator` library implements pagination by reloading the entire admin page for each page navigation, which can impact user experience, especially with many inlines or slow connections. It does not support AJAX-based pagination.
fix
If AJAX pagination is a requirement for a smoother user experience, use the `django-admin-inline-paginator-plus` fork, which explicitly adds AJAX support.
affects: <=0.4.0
gotchaWhen dealing with a very large number of inline fields (even if paginated), Django's `DATA_UPLOAD_MAX_NUMBER_FIELDS` setting might be exceeded during form submission, leading to "TooManyFieldsSent" errors. This is a Django core limitation, but relevant when using inline pagination.
fix
If you encounter "TooManyFieldsSent" errors, you may need to increase the `DATA_UPLOAD_MAX_NUMBER_FIELDS` setting in your Django project's `settings.py` file. Be mindful of potential security implications when increasing this value excessively.
affects: All versions
Upgrade
Version history
0.4.0latest on PyPI · released Apr 26, 2023
Audit
Dependencies
DjangorequiredThis is a Django admin extension, requiring Django as a peer dependency.
Agent activity
10 hits · last 30 days
node
8
Resources
django-admin-inline-paginator — pip install django-admin-inline-paginator · libregistry