mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-23 00:10:24 +00:00
Merge branch 'nex2hex/develop' into develop
* nex2hex/develop: Update fields.py
This commit is contained in:
commit
453efac553
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class ProcessedImageField(ImageField, SpecHost):
|
|||
def clean(self, data, initial=None):
|
||||
data = super(ProcessedImageField, self).clean(data, initial)
|
||||
|
||||
if data:
|
||||
if data and data != initial:
|
||||
spec = self.get_spec(source=data)
|
||||
data = generate(spec)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue