edmu/admin.py
def save_model(self, request, obj, form, change):
        """
        We need to pass the user to the save method as it is what the underlying model expects.
        """
        if not obj.pk:
            obj.created_by = request.user
        obj.updated_by = request.user
        obj.save()

        We need to pass the user to the save method as it is what the underlying model expects.
        
We need to pass the user to the save method as it is what the underlying model expects.
We need to pass the user to the save method as it is what the underlying model expects .
def save_model(self, request, obj, form, change):
        if not obj.pk:
            obj.created_by = request.user
        obj.updated_by = request.user
        obj.save()
def save_model ( self , request , obj , form , change ) : if not obj . pk : obj . created_by = request . user obj . updated_by = request . user obj . save ( )
We need to pass the user to the save method as it is what the underlying model expects.
We need to pass the user to the save method as it is what the underlying model expects .
"""
        We need to pass the user to the save method as it is what the underlying model expects.
        """
self
request
obj
form
change