Shows a dialog popup with helptext for the admin fields that you have indicated.
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-admin-dialog-1.0.8.tar.gz
.
File metadata
- Download URL: django-admin-dialog-1.0.8.tar.gz
- Upload date:
- Size: 99.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c384e4ff99e21327204437624a72c1bd9c96b85a3e6a8621e7c2c2d3c5b2f85 |
|
MD5 | c6e2b97c73e4849354528a239b814ac0 |
|
BLAKE2b-256 | 71fafa8fa46e1c38bbabcb328aa8b9021ff5f58ce28cbfe447c6d029469e66ac |