An application helps registering all found models (from installed apps) to the admin area
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
quickadmin
.gitignore
.travis.yml
CHANGES.txt
LICENSE
MANIFEST.in
README.md
README.rst
run_tests.py
setup.cfg
setup.py

README.md

#Django Quick Admin

Build Status Coverage Status Downloads Latest Version

django-quickadmin is a Django application which automatically registers all models found in INSTALLED_APPS of settings module.

Notice: All models registered to admin via normal method (inside admin.py) will not be affected by this application, they will always show up.

Installation

The installation process is simple just like most of Django applications, just using pip then updating INSTALLED_APPS.

pip install django-quickadmin

Locate INSTALLED_APPS inside settings file, and put 'quickadmin' there.

INSTALLED_APPS = (
    'django.contrib.admin',
    ...
    'quickadmin',
    ...
)

Please be sure that 'django.contrib.admin' is present, otherwise Django will throw error at starting

There you are, just restart the Django instance and visit admin page to see all custom models appeared and ready to be managed.

Configuration

The application also support very few of customizations, all are placed inside the settings module.

  • QADMIN_EXCLUDES - List of applications or models which will be bypassed/hidden in admin area. In the case below, all undeclared models of my_first_app and the model my_second_app.JustOneModel will be excluded.

      QADMIN_EXCLUDES = [
          'my_first_app',
          'my_second_app.JustOneModel',
      ]
    
  • QADMIN_EXCLUDE_STOCK - Option for excluding default/stock applications of Django or not (default = True).

      QADMIN_EXCLUDE_STOCK = False    # models of applications like: south, contenttypes,.. will be shown