'when admin updates user profile how to access that obj in views and perform some task in django

when admin updates user profile how to access that obj in views and perform some task in django

i have user model and when user creates new account by default his id is deactivated but when admin activate their account from admin panel by change the user model field "is_active" to True the i want to send that user an email and some other task also so how to get that user's object that activated by admin



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source