Django application. It adds a column view control form into admin area. You can choose which fields to display and sort them in the correct order for you. Possible fields for display are taken from ``list_display``. To sort the fields just drag the field into place.
Project description
Django application. It adds a column view control form into admin area. You can choose which fields to display and sort them in the correct order for you. Possible fields for display are taken from list_display. To sort the fields just drag the field into place.
Quick start
Download it from PyPi with pip install django-admin-display-fields-settings
Add “admin_display_fields_settings” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'admin_display_fields_settings', )
Include the admin_display_fields_settings URLconf in your project urls.py like this:
url(r'^admin_display_fields_settings/', include('admin_display_fields_settings.urls'))
Run python manage.py syncdb or python manage.py migrate to create the admin_display_fields_settings models.
In your admin.py:
from django.contrib import admin from polls.models import MyModel from admin_display_fields_settings.admin import DisplayFieldsSettingsAdmin class MyModelAdmin(DisplayFieldsSettingsAdmin): list_display = ('question', 'pub_date', 'was_published_recently', 'full_name', '__str__', '__unicode__') admin.site.register(MyModel, MyModelAdmin)
Example
Project details
Release history Release notifications | RSS feed
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-display-fields-settings-0.1.8.tar.gz
.
File metadata
- Download URL: django-admin-display-fields-settings-0.1.8.tar.gz
- Upload date:
- Size: 80.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 976681677ba5d282346522fd779c15e1b94fc375b2a14ea6695288e3fda221a2 |
|
MD5 | 923f97c744e9d8e8d546f776b4fb1ab9 |
|
BLAKE2b-256 | 42cfdb742c07678de203c5e45957c185ace24dc3b2e8a3e8007b34c95b982e8c |