# Django admin object change action

**URL:** <https://forum.djangoproject.com/t/django-admin-object-change-action/9338>\
**Category:** Using Django\
**Created:** [August 22, 2021, 3:48pm UTC](https://forum.djangoproject.com/t/django-admin-object-change-action/9338 "2021-08-22T15:48:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaber-Al-Siam](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jaber-al-siam/32/5565_2.png) [@Jaber-Al-Siam](https://forum.djangoproject.com/u/Jaber-Al-Siam)\
**Post date:** [August 22, 2021, 3:48pm UTC](https://forum.djangoproject.com/t/django-admin-object-change-action/9338/1 "2021-08-22T15:48:18Z")

</div>

I am developing a courier management service using Django. So far, I have made three models,

1. Customer
2. DelveryAgent
3. Parcels.

**Here is the Parcel model:**

```auto
class Parcel(models.Model):
    type = models.CharField(max_length=20)
    city = models.CharField(max_length=20)
    street = models.CharField(max_length=100)
    zip = models.CharField(max_length=100)
    email = models.CharField(max_length=100)
    phone = models.CharField(max_length=100)
    status = models.CharField(max_length=100, choices=STATUS, default='pending')
    booked_by = models.ForeignKey(Customer, on_delete=models.CASCADE)
    delivery_agent = models.ForeignKey(DeliveryAgent)

```

Customers can place new parcels. Initially, the parcel status is pending, and no delivery agent is assigned. When the admin assigns a new delivery agent to the parcel from the admin site, I want the relative customer to get notified with the details of the delivery agent. How can I do that?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 22, 2021, 4:21pm UTC](https://forum.djangoproject.com/t/django-admin-object-change-action/9338/2 "2021-08-22T16:21:45Z")

</div>

You have the [ModelAdmin.save\_model](https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#modeladmin-methods) method that you can override to perform your “notification process” whenever a save is done in a particular model admin class.

---

<div class="post-metadata">

**Author:** ![Jaber-Al-Siam](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jaber-al-siam/32/5565_2.png) [@Jaber-Al-Siam](https://forum.djangoproject.com/u/Jaber-Al-Siam)\
**Post date:** [August 22, 2021, 4:43pm UTC](https://forum.djangoproject.com/t/django-admin-object-change-action/9338/4 "2021-08-22T16:43:22Z")

</div>

I got it. Thanks a lot.
