Skip to content
Snippets Groups Projects

bugfix: force resolve request.user for auto_author

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading