From: Aleksander Ɓukasz Date: Mon, 9 Jun 2014 14:52:05 +0000 (+0200) Subject: Fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/b7cc868621c5c2e7976cd12c4eb0ba81da8ca87c?hp=7f521b01d4366d1c9157a99766d1471d9b370a8d Fix --- 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()