From a45133830565f533a9ee14d71182916baf50b626 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Thu, 16 Feb 2012 13:44:17 +0000 Subject: [PATCH] fix User comparison --- mygpo/users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mygpo/users/models.py b/mygpo/users/models.py index 777cbd75..c8796eb1 100644 --- a/mygpo/users/models.py +++ b/mygpo/users/models.py @@ -871,7 +871,7 @@ class User(BaseUser, SyncedDevicesMixin): return False # ensure that other isn't AnonymousUser - return other.is_authenticated() and self._id == other_id + return other.is_authenticated() and self._id == other._id def __repr__(self): -- 2.11.4.GIT