Customizing the Django Admin Change Log

Asked

Viewed 19 times

0

all right?

I am setting up a system to register accesses and users and need to improve the log list of Admin, so that it presents more information as the value changed and not only which fields were changed

Today she comes like this:

DATE/TIME USER ACTION
January 20, 2021 at 12:08 rhuan Added.
20 January 2021 at 15:43 rhuan Added system instance "Python".
20 January 2021 at 15:58 rhuan Changed from dsStatus to system instance "Python".

what I would like is that where this dsStatus he presented the changed value.

Example:

DATE/TIME USER ACTION
January 20, 2021 at 12:08 rhuan Added.
20 January 2021 at 15:43 rhuan Added system instance "Python".
20 January 2021 at 15:58 rhuan Changed from dsStatus to ACTIVE in system instance "Python".
  • how’s your code? you can find the message generator in lib/python3.7/site-Packages/Django/contrib/admin/models.py def get_change_message(self):

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.