Django Admin Cookbook¶
Django Admin Cookbook - How to do things with Django admin.¶
This is a book about doing things with Django admin. It takes the form of about forty questions and common tasks with Django admin we answer.
The chapters are based on a common set of models, which you can read in detail here (Models used in this book). In short, we have two apps,
entities. The models are
Text and Design¶
Bulk and custom actions¶
Multiple models and inlines¶
- 1. How to show image from Imagefield in Django admin.
- 2. How to associate model with current user while saving?
- 3. How to mark a field as readonly in admin?
- 4. How to show an uneditable field in admin?
- 5. How to make a field editable while creating, but read only in existing objects?
- 6. How to filter FK dropdown values in django admin?
- 7. How to manage a model with a FK with a large number of objects?
- 8. How to change ForeignKey display text in dropdowns?
- 9. How to add a custom button to Django change view page?