From 8120fbe3eee9a453f5aec25a366339873f940127 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 3 Mar 2012 19:14:13 +0100 Subject: [PATCH] save no longer triggers celery overwrite --- pandora/user/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pandora/user/models.py b/pandora/user/models.py index d734bc60e..52549cc20 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -112,9 +112,6 @@ class SessionData(models.Model): if request.user.is_authenticated(): cls.objects.filter(user=request.user).update(session_key=session_key) data, created = cls.objects.get_or_create(session_key=session_key) - if created: - data.save() - data = cls.objects.get(session_key=session_key) if request.user.is_authenticated(): data.user = request.user data.ip = request.META['REMOTE_ADDR']