twentytab-inspectmodel

A django app that initializes admin changelist view with a useful tool to have a preview of instances


License
MIT
Install
pip install twentytab-inspectmodel==0.1

Documentation

twentytab-previewadmin

A django app that initializes admin changelist view with a useful tool to have a preview of instances

Installation

Use the following command: pip install twentytab-previewadmin

Configuration

  • settings.py
INSTALLED_APPS = {
    ...,
    'previewadmin',
    ...
}
  • Static files

Run collectstatic command or map static directory.

Usage

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" />'