Skip to main content

django-admin-contextmenu app, adds a contextmenu column to django admin's changelist page.

Project description

django-admin-contextmenu

This is a multi-directional context menu for Django admin. It adds a new column in your admin's changelist page, after the checkbox column. When it is clicked a pop menu opens. The menu is completely empty and it is the best place for including links to other entites.

Requirements

  • Django > 2.2
  • Python > 3.5

Installation

Use your favorite Python package manager to install the app from PyPI, e.g.

Example:

pip install django-admin-contextmenu

Add contextmenu to INSTALLED_APPS:

Example:

    INSTALLED_APPS = (
        ...
        'contextmenu',
        ...
    )

Example usage in admin

    from contextmenu.options import CustomModelAdmin


    @admin.register(ExampleModel)
    class ExampleAdmin(CustomModelAdmin):

        def get_contextmenu_items(self, obj):
            return [
                {'title': 'Example link title', 'url': 'http://example.url'},
                .
                .
                .
                .
                {'title': 'Example link title', 'url': 'http://example.url'},
            ]
```## [0.1.0] - 2020-03-05
### Added
- Initial commit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-admin-contextmenu, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_admin_contextmenu-0.1.0-py3-none-any.whl (5.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-admin-contextmenu-0.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page