[Answered ]-Django – Store username of logged on user in admin edits

2👍

for the admin site you can use save_model in your admin file e.g.

class CommonInformationAdmin(admin.ModelAdmin):
    ....
    def save_model(self, request, obj, form, change):
        obj.lastEditedby = request.user
        obj.save()
👤JamesO

Leave a comment