Commits

Arnaud Grausem  committed e0f0b2d

Bug fixed: Can't instantiate ActivityLogger from a django User
instance since the Django 1.2.3 version

  • Participants
  • Parent commits 929287d

Comments (0)

Files changed (1)

File thot/registration/models.py

     def from_user(user):
         """Returns an ActivityLogger instance from an Django User instance
         """
-        return ActivityLogger(**user.__dict__)
+        return ActivityLogger.objects.get(id=user.id)
 
     ############################################################################
     # ACTIVITY LOGGER API : QUERYING METHODS                                   #