0% found this document useful (0 votes)
7 views4 pages

Django Admin - Update Objects: Display The List of Objects

The document explains how to update objects in Django Admin after registering a model. Users with the appropriate permissions can add, update, or delete objects, with changes reflected in the admin interface. However, structural changes to the model require editing the class definition and performing migrations, which cannot be done through the admin interface.

Uploaded by

ravindranp9925
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Django Admin - Update Objects: Display The List of Objects

The document explains how to update objects in Django Admin after registering a model. Users with the appropriate permissions can add, update, or delete objects, with changes reflected in the admin interface. However, structural changes to the model require editing the class definition and performing migrations, which cannot be done through the admin interface.

Uploaded by

ravindranp9925
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Django Admin: Update Objects https://www.tutorialspoint.com/django/django_admin_update_objects.

htm

Home Whiteboard AI Assistant Online Compilers Jobs Tools Articles

Chapters Categories

SQL HTML CSS Javascript Python Java C C++ PHP Scala

Django Admin - Update Objects

Once a model is registered with Djangos Admin app, we can easily perform CRUD
operations on the model. In the previous chapter, we learned to register the
Employee model. The homepage of admin site shows it under the MYAPP section −

Display The List of Objects


To display the list of objects, click on the name −

1 of 6 10-06-2025, 17:15
Django Admin: Update Objects https://www.tutorialspoint.com/django/django_admin_update_objects.htm

Advertisement

Add / Update / Delete an Object


To add/update/delete an object from the model, the current user must have been
granted the required permission. Note that the superuser is equipped with all the
permissions. Here, we assume that you have logged into the admin site with the
superuser credentials.

If you want to change the contents of any of the objects displayed in the above figure,
just click on the corresponding row in the list.

Let us open the object on the top of the list.

2 of 6 10-06-2025, 17:15
Django Admin: Update Objects https://www.tutorialspoint.com/django/django_admin_update_objects.htm

Let us update the values of Empname and Salary fields as shown. Click on the SAVE
button, so that the corresponding row of the backend table is also updated.

The list of objects reappears with the changes made being reflected.

Note that the admin interface lets you to add/update/delete an object from the model,

3 of 6 10-06-2025, 17:15
Django Admin: Update Objects https://www.tutorialspoint.com/django/django_admin_update_objects.htm

but it is not possible to change the structure of the model from the admin interface.

To add/modify/delete any of the attributes of any model, you need to edit the class
definition and perform migrations for the change to be propagated to the database
table mapped to the object.

TOP TUTORIALS

Python Tutorial

Java Tutorial

C++ Tutorial

C Programming Tutorial

C# Tutorial

PHP Tutorial

R Tutorial

HTML Tutorial

CSS Tutorial

JavaScript Tutorial

SQL Tutorial

TRENDING TECHNOLOGIES

Cloud Computing Tutorial

Amazon Web Services Tutorial

Microsoft Azure Tutorial

Git Tutorial

Ethical Hacking Tutorial

Docker Tutorial

Kubernetes Tutorial

DSA Tutorial

Spring Boot Tutorial

SDLC Tutorial

Unix Tutorial

4 of 6 10-06-2025, 17:15

You might also like