I want to record the user in a database who created, updated or deleted an object there using django. I've found a simple solution with threadlocal
and a logging abstract class from here : Why is using thread locals in Django bad? ( but that is discouraged ).
But the problem with this solution is that it is extremely difficult to write any unit test. So what would be a better solution for logging event based information about a user who created, updated, or deleted an object in django?