Django Admin Tutorials
Learn to do more with the Django Admin

Archives

  • July 2020
  • May 2020
  • April 2020
Menu Close
  • HOME
  • Basic tutorials
  • Advanced tutorials
  • Admin interface Customization

Basic tutorials

How to pass extra context to listview or changeview ?

Posted on July 18, 2020 by Christophe Surbier

In this tutorial, we will see how it is easy to add extra context variables to change_list or change_form in Django Admin.

Continue Reading →
Basic tutorials

How to add a database view to Django admin?

Posted on April 16, 2020 by Christophe Surbier

April 2020

Sometimes we want to display data which come from a database view and not from a Django model. It could be a view calculated by a stored procedure. It is super easy to do that.

Continue Reading →
Basic tutorials database view, django admin
1

How to add or edit models and related model on same page ?

Posted on April 13, 2020 by Christophe Surbier
Product selected

April 2020

Sometimes when editing or adding a model in the admin, we would like to add values for related models at the same time. That’s the purpose of this tutorial

Continue Reading →
Basic tutorials django admin, inlines

How to add a custom field in listview page ?

Posted on April 11, 2020 by Christophe Surbier
List of products

April 2020

To display fields of a model in listview page of the admin, we use the instruction :

list_display = ('user','refShop','title')

which tells django admin which fields to display. But what if we want to add a custom field such as a button, a link or a calculated field ?

Continue Reading →
Basic tutorials django admin custom fields

How to override save method in admin ?

Posted on April 10, 2020 by Christophe Surbier
Django admin

April 2020

Sometimes after adding or editing model in the admin, it should be useful to do some custom code when saving the data.

Continue Reading →
Basic tutorials

Share

RSS
Facebook
fb-share-icon
Twitter
Tweet
LinkedIn
Share

Recent Posts

  • How to pass extra context to listview or changeview ?
  • How to do advanced filtering with Django admin ?
  • How to customize Django Admin index page and add a chart ?
  • How to make Ajax request in Django Admin changeview page ?
  • How to display foreign key values to listview page ?

Be notified when a new tutorial is available

Django Admin ultimate guide

Django admin ultimate guide

To know more about Django Admin get my eBook

Ionic and Django Kickoff

Scaffold your Ionic project with Django backend quickly and easily.

More

  • Become instructor
  • Contact
  • Course Checkout
  • Instructor Dashboard
  • List courses
  • List wish list
  • Newsletter
  • Student profile
  • Privacy Policy
  • Terms and Conditions
© 2021 Django Admin Tutorials. All rights reserved.
Hiero by aThemes
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkNoPrivacy policy

Terms and Conditions - Privacy Policy