https://github.com/20tab/twentytab-previewadmin
A django app that initializes admin changelist view with a useful tool to have a preview of instances
https://github.com/20tab/twentytab-previewadmin
Last synced: about 1 year ago
JSON representation
A django app that initializes admin changelist view with a useful tool to have a preview of instances
- Host: GitHub
- URL: https://github.com/20tab/twentytab-previewadmin
- Owner: 20tab
- License: mit
- Created: 2014-07-09T15:39:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-10T14:51:10.000Z (over 11 years ago)
- Last Synced: 2025-01-30T00:43:45.927Z (over 1 year ago)
- Language: Python
- Size: 176 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```py
INSTALLED_APPS = {
...,
'previewadmin',
...
}
```
- Static files
Run collectstatic command or map static directory.
## Usage
```py
from previewadmin.admin import PreviewAdmin
class CommessaAdmin(PreviewAdmin):
pass
```
or
```py
from previewadmin.admin import PreviewAdmin
class CommessaAdmin(PreviewAdmin):
show_help_text = True
button_label = u'
'
```