Only update threadlocals if the user has already been created.

#52 Merged at 3bed3f2
Repository
GaretJax
Branch
default
Repository
chris1610
Branch
default
Author
  1. Jonathan Stoppani
Reviewers
Description

Avoid to raise an exception when a user is not yet saved to the DB. This can happen when a third party application subclasses the User model and the data is inserted to the database using a fixture.

Comments (0)