fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update librarian
[redakcja.git]
/
apps
/
catalogue
/
models
/
listeners.py
diff --git
a/apps/catalogue/models/listeners.py
b/apps/catalogue/models/listeners.py
index
f8120a0
..
1cfac27
100755
(executable)
--- 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):
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()
# Quick hack - this change seems to result from logging user in so just ignore it.
return
books = set()