Skip to content

Commit

Permalink
Merge ab09c9b into 105ec5c
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniv committed Sep 15, 2014
2 parents 105ec5c + ab09c9b commit cf4766b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user_sessions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def get_decoded(self):
return SessionStore(None, None).decode(self.session_data)

user = models.ForeignKey(getattr(settings, 'AUTH_USER_MODEL', 'auth.User'),
to_field=getattr(settings, 'USER_SESSIONS_USER_TO_FIELD', None),
null=True)
user_agent = models.CharField(max_length=200)
last_activity = models.DateTimeField(auto_now=True)
Expand Down

0 comments on commit cf4766b

Please sign in to comment.