Shows a dialog popup with helptext for the admin fields that you have indicated.
Requirements
django-redactoreditor
Installation
Install the app via pip:
$ pip install django-admin-dialog
Add django_admin_dialog and redactor to your installated apps:
INSTALLED_APPS = (
...
'redactor',
'django_admin_dialog',
...
Add the context processor to your TEMPLATE_CONTEXT_PROCESSORS:
TEMPLATE_CONTEXT_PROCESSORS = (
...
'django_admin_dialog.context_processors.django_admin_dialog',
)
Override the admin base template (base.html) and include this:
{% include "django_admin_dialog/django_admin_dialog.html" %}
In your admin.py file, add this mixin for all your ModelAdmin’s that you want to add the dialog:
from django_admin_dialog.mixins import DjangoAdminDialogMixin
class MyModelAdmin(DjangoAdminDialogMixin, admin.ModelAdmin):
...
And run the migrations:
$ manage.py migrate django_admin_dialog
Usage
Access to the DjangoAdminDialog application.
In this form you indicate the url on which you want to show the modal dialog boxes and the field id.
If you want to know the name of the form fields, you can set this setting variable:
DJANGO_ADMIN_DIALOG_SHOW_IDS = True
Now if you access to your model form, you can see the field id’s next to them.
When you access to your model admin form, you can see a new icon next to the field that you indicate previously.
And now you can click on this icon to show the dialog.
Metadata
Release files for django-admin-dialog 1.0.8
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 | Actions |
|---|---|---|---|---|
| django-admin-dialog-1.0.8.tar.gz | 99.2 kB | Without provenance | Details for django-admin-dialog-1.0.8.tar.gz |
Release files / django-admin-dialog-1.0.8.tar.gz
| Download URL | django-admin-dialog-1.0.8.tar.gz |
|---|---|
| Size | 99.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c384e4ff99e21327204437624a72c1bd9c96b85a3e6a8621e7c2c2d3c5b2f85
|
|
BLAKE2b-256 checksum How to use checksums |
71fafa8fa46e1c38bbabcb328aa8b9021ff5f58ce28cbfe447c6d029469e66ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-admin-dialog 1.0.8
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.