From b7cc868621c5c2e7976cd12c4eb0ba81da8ca87c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 9 Jun 2014 16:52:05 +0200 Subject: [PATCH] Fix --- apps/catalogue/models/listeners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/models/listeners.py b/apps/catalogue/models/listeners.py index f8120a07..1cfac276 100755 --- a/apps/catalogue/models/listeners.py +++ b/apps/catalogue/models/listeners.py @@ -30,7 +30,7 @@ models.signals.post_save.connect(image_changed, sender=Image) def user_changed(sender, instance, *args, **kwargs): - if 'last_login' in kwargs.get('update_fields', []): + if 'last_login' in (kwargs.get('update_fields') or {}): # Quick hack - this change seems to result from logging user in so just ignore it. return books = set() -- 2.20.1