mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-01 09:54:43 +00:00
Fix imagekit.forms.fields.ProcessedImageField
This commit is contained in:
parent
b45a22abe6
commit
c202234e82
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from django.forms import ImageField
|
||||
from ..specs import SpecHost
|
||||
from ..utils import generate
|
||||
|
||||
|
||||
class ProcessedImageField(ImageField, SpecHost):
|
||||
|
|
@ -22,7 +23,7 @@ class ProcessedImageField(ImageField, SpecHost):
|
|||
data = super(ProcessedImageField, self).clean(data, initial)
|
||||
|
||||
if data:
|
||||
spec = self.get_spec() # HINTS?!?!?!?!?!
|
||||
data = spec.apply(data, data.name)
|
||||
spec = self.get_spec(source=data)
|
||||
data = generate(spec)
|
||||
|
||||
return data
|
||||
|
|
|
|||
Loading…
Reference in a new issue