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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-admin-contextmenu-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b4a46d0456032172ea557de7e7d3c2065acaac650cbca302881d3d899b77b5 |
|
MD5 | 63a177d6f229fe4238ee4b31e9ff8438 |
|
BLAKE2b-256 | a78a36234c0c4f356068c98402d34a1a9d6b72cdc22db348403aaffaaefc7f25 |
Close
Hashes for django_admin_contextmenu-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9bbd3a0b78c2af4740d1e8ceb12ccce37b2d49fe79e3f693a173f94a078f4d |
|
MD5 | 72210f8ddb338940fad9dc91e5f1a1c0 |
|
BLAKE2b-256 | 8ce2b019ca02ea1180455e47895aaf53c2468ecb8bc615bd80b8a5b53c4f1cb2 |