Skip to content

20tab/twentytab-previewadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published