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
Metadata
Release files for django-admin-contextmenu 0.1.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-contextmenu-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_contextmenu-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Security for django-admin-contextmenu 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.