Skip to content

Doesn't seem to play nice with formsets #23

@Lacrymology

Description

@Lacrymology

Hi. The following line:

https://github.com/zmathew/django-ajax-upload-widget/blob/master/ajax_upload/widgets.py#L44

doesn't seem to play nice with empty forms in formsets, because of this:

https://github.com/django/django/blob/master/django/forms/forms.py#L445

since the initial value will return None, but the value_from_datadict will return False, then the form will appear as changed and with an invalid value. I can't figure out how important that False is there

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