A django app that initializes admin changelist view with a useful tool to have a preview of instances
Use the following command: pip install twentytab-previewadmin
- settings.py
INSTALLED_APPS = {
...,
'previewadmin',
...
}
- Static files
Run collectstatic command or map static directory.
from previewadmin.admin import PreviewAdmin
class CommessaAdmin(PreviewAdmin):
pass
or
from previewadmin.admin import PreviewAdmin
class CommessaAdmin(PreviewAdmin):
show_help_text = True
button_label = u'<img src="/static/img/info.png" class="info-img" />'