mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-01 12:30:24 +00:00
Don't send source_saved when no source
Fixes #214 and the failing test from 404fed5
This commit is contained in:
parent
404fed58ec
commit
535e68aea6
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class ModelSignalRouter(object):
|
|||
old_hashes = instance._ik.get('source_hashes', {}).copy()
|
||||
new_hashes = self.update_source_hashes(instance)
|
||||
for attname, file in self.get_field_dict(instance).items():
|
||||
if created or old_hashes[attname] != new_hashes[attname]:
|
||||
if file and old_hashes[attname] != new_hashes[attname]:
|
||||
self.dispatch_signal(source_saved, file, sender, instance,
|
||||
attname)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue