Verified Commit 2710c64f authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

signon: add an appropriate audit trail for edits from the admin site



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 7d0fa272
......@@ -8,3 +8,9 @@ class IdentityAdmin(admin.ModelAdmin):
"username",
"person__fullname", "person__email",
)
def save_model(self, request, obj, form, change):
"""
Given a model instance save it to the database.
"""
obj.save(audit_author=request.user, audit_notes="edited from admin")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment