asaglimbeni / clean-image-crop-uploader

Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple widget replacement in the form. It use Modal from twitter-bootstrap.
http://asaglimbeni.github.com/clean-image-crop-uploader/
Other
40 stars 36 forks source link

Hardcoded image field name #4

Open kkarwows opened 11 years ago

kkarwows commented 11 years ago

Method value_from_datadict(self, data, files, name) in widgets.py has hardcoded image field name:

uploaded_file = UploadedFile.objects.get(id=data.get('image'))

It works with example but when you specify other name like:

widgets = {
    'picture': CicuUploderInput(options=cicuOptions)
}

it breaks.