Since the error we are fixing is because of `SimpleLazyObject`, instead of directly assigning a `User` object we can do how it is done in the authentication middleware.

```
from django.utils.functional import SimpleLazyObject
self.post_request.user = SimpleLazyObject(lambda: self.user)
```

https://github.com/django/django/blob/1.4.5/django/contrib/auth/middleware.py#L16