Django — Implementing a “last edited by..” in the admin

Each ModelAdmin has a save_model method thats called whenever an object is saved.

Just override save_model(self, request, object_to_be_saved, form, change) and we have an easy way to record who last edited it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s