Skip to content

bugfix: force resolve request.user for auto_author

Calum Mackervoy requested to merge auto-author-lazy-object-fix into master

Closes applications/hubl#711 (closed)

The issue was that self.request.user gives a SimpleLazyObject, the class of which is later accessed in get_meta as though it's the user model beneath it

I opted for forcing the self.request.user into the User instance it represents (in the auto_author handling code of LDPViewSet)

Merge request reports