Skip to content

Filebrowser field doesnt work inside editable #140

@nirbhasa

Description

@nirbhasa

Issue

I have this model field
image = FileField(verbose_name=_("Image"), upload_to="images", format="Image", max_length=255, null=True, blank=True)

  • Uploading images using regular admin works fine
  • When called inside editable, the FileBrowserWidget seems not to be called properly. AddFileBrowser.js is not loaded, and also some attributes of final_attrs are not passed to the custom field template (specifically the id attribute)

I can work around by adding AddFileBrowser.js in the editable_loader template, and adding some js to fill in the id attributes

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