Skip to content
develop
Switch branches/tags
Code

Latest commit

updated django-utils2 to fix #11 v2.2.2

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmGRzlwACgkQ6BRE6c4f
# aV1zQw/+MBN7y8r96nW8NSN/9g0hmrCuU+BRb8q8keN/HW83sEHgb/YTQgDZgtWh
# LPZhSxwDp2rV+xSKG0gFLoWKAMfSi+mA/kewCIERiUXkTVvv/jOx1hxibl7vZni9
# mw6H514dSiTguMdy+LBVAeAPyOjcgzGHCOm/pwOOhlZpml9bOOwzMRAGtN1JGDoG
# 6f0I11w2HZQ6hlEh1huT7lYwf2fPvr0OwASDiEZB5qPo/PEDx3i9YT191Bv72kEk
# WXuKQYEhZ8cJ1YcyIQbaJY8bcUUVjgYfJ25ha/W5awkAJBbZ27iPs/iRjh+bl7X6
# xk++ARZerfPSankQ5BwtdHFmhvIouo/ILjZtfbboVOLozUnsauA9V52ngQmbtEt1
# wZnrwdRCrEpfrkmiqLODWgp819u5se0evMYMCbQE337ft2t5IzT8Kg05cr0Pv7mO
# 7B8YGcm/0XOLnhmxI/5vbad037d5s+sLbuJYvUc1Qo76fsdk5Cf061kNz2m7/1ga
# 4ltfbf6rTXnM8f0W1fTAJNuIGdK288xyJZTZXQFV7VeptmIjbcc0DAvK4fdoHGQZ
# 4tQHUQzskyusxMSklboTCa+K9DQWwA4I600cyEK0ttUeKsPOmRTO6tcvZwkxXVf/
# sRhwBZJNK0jd3kAigytQM/7U2gVdhinZSrEK5Wq1qBdmgrzENeY=
# =Qkz5
# -----END PGP SIGNATURE-----
# gpg: Signature made Mon Nov 15 04:05:00 2021 CET
# gpg:                using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D
# gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate]
# gpg:                 aka "[jpeg image of size 9662]" [ultimate]
9453862

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Readme

Introduction

Test Status Coverage Status

The Django Admin Generator is a project which can automatically generate (scaffold) a Django Admin for you. By doing this it will introspect your models and automatically generate an Admin with properties like:

  • list_display for all local fields
  • list_filter for foreign keys with few items
  • raw_id_fields for foreign keys with a lot of items
  • search_fields for name and slug fields
  • prepopulated_fields for slug fields
  • date_hierarchy for created_at, updated_at or joined_at fields

Links

Install

To install:

  1. Run pip install django-admin-generator or execute python setup.py install in the source directory
  2. Add django_admin_generator to your INSTALLED_APPS

If you want to run the tests, run py.test (requires pytest)

Usage

To generate an admin for a given app:

./manage.py admin_generator APP_NAME >> APP_NAME/admin.py

To generate an admin for a given app with all models starting with user:

./manage.py admin_generator APP_NAME '^user' >> APP_NAME/admin.py

About

The Django Admin Generator automatically generates (scaffolds) a fully functioning Django admin by introspecting and querying your models

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages