def save_model(self, request, obj, form, change):
        # If the object's new update the created_by field.
        if not change:
            obj.created_by = request.user
        
        # Either way update the updated_by field.
        obj.updated_by = request.user

        # Let the superclass do the final saving.
        return super(QuestionAdmin, self).save_model(request, obj, form, change)
Update created-by / modified-by fields.
dataset/ETHPy150Open howiworkdaily/django-faq/faq/admin.py/QuestionAdmin.save_model