Skip to main content

Django ModelAdmin for the lazy.

Project description

Django’s default ModelAdmin is kinda dull. It only displays the __unicode__ column and that’s it. SmartAdmin attempts to create some more useful defaults for list_display, list_filter, etc., based on the model. (You can still manually specify whatever you want of course.)

This may be useful to you if you create new models often and want to have a usable admin for them without much work.

Installation

pip install django-smartadmin

Usage

Just use smartadmin.SmartAdmin instead of django.contrib.admin.ModelAdmin:

from smartadmin import SmartAdmin

class MyModelAdmin(SmartAdmin):
    pass  # or override something

admin.site.register(MyModel, MyModelAdmin)

# or just:

admin.site.register(MyModel, SmartAdmin)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-smartadmin-0.0.5.tar.gz (3.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page