Skip to main content

django_sortable_tabular

django_sortable_tabular is a simple and lightweight Django library that enables column sorting for fields displayed in TabularInline in the Django admin panel.

Author

Michał Konwiak GitHub.

Features

  • Column sorting for TabularInline using JavaScript and Django.
  • Multi-column sorting with adjustable sort direction (ascending/descending).
  • Seamless integration with the Django admin interface through the SortableTabularInline class.

Requirements

  • Python 3.8+
  • Django 3.2+

Installation

  1. Install the library using pip:

    pip install django_sortable_tabular
    
  2. Add a package to INSTALLED_APPS section.

    INSTALLED_APPS = [
        # another apps
        'django_sortable_tabular',
    ]
    
  3. Define a class that extends the SortableTabularInline class and use it as you would a standard inline class. Here’s an example:

    class CommentAdmin(SortableTabularInline):
     model = Comment
    
    class PostAdmin(admin.ModelAdmin):
        list_display = (
            "title",
            "text",
            "picture",
            "author"
        )
        inlines = [
            CommentAdmin
        ]
    
  4. Run python manage.py collectstatic

  5. Run server and enjoy

Metadata

Release files for django-sortable-tabular 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sortable-tabular 0.1.1
File Size Uploaded Provenance
django_sortable_tabular-0.1.1.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sortable-tabular 0.1.1
File Interpreter ABI Platform
django_sortable_tabular-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / django_sortable_tabular-0.1.1.tar.gz

Download URL django_sortable_tabular-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f1d5beef345cd4464b73657cfcfe4cca7ecad5a70b3d075e0d7a9015723d22d0
BLAKE2b-256 checksum
How to use checksums
b370f25e606bff682a440914fa5328e74318b301a6d08c22fa17c25fd21aafbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / django_sortable_tabular-0.1.1-py3-none-any.whl

Download URL django_sortable_tabular-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58c5c9c47ac8748a46945a033f322c395d89e387f36dc2d2f50fea1e51a198e0
BLAKE2b-256 checksum
How to use checksums
487b3201be71249f33baf5d4dabdb390b01d405268edd437ac045ef8481906ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Security for django-sortable-tabular 0.1.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page