I have this custom save()
method in mt admin.py
:
def save_model(self, request, obj, form, change):
if obj._state.adding:
obj.added_by = request.user
return super().save_model(request, obj, form, change)
After a recent update this is not working any more; indeed, when I hit ‘save’ on the backend I get no errors and the data is not saved on the database.
It has worked until a recent update (I think up until 5.0.2).