Socket
Book a DemoInstallSign in
Socket

django-smartadmin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-smartadmin

Django ModelAdmin for the lazy.

0.0.5
pipPyPI
Maintainers
1

Django Smart Admin

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:

.. code-block:: python

from smartadmin import SmartAdmin

class MyModelAdmin(SmartAdmin):
    pass  # or override something

admin.site.register(MyModel, MyModelAdmin)

# or just:

admin.site.register(MyModel, SmartAdmin)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.