Skip to content

Hardcoded image field name #4

@kkarwows

Description

@kkarwows

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions