Skip to content

DialogModelForm title problem #170

@amikphoto

Description

@amikphoto

Can't use "title" name of fields in my model if I want to open it in dialogmodelform.

title = "add/edit"
induce_open = '..create_dish.edit_cat:active || ..create_dish.add_cat:active'
induce_close = '.change:active || .cancel:active'

class Meta:
    model = DishCatalog
    fields = ['id','title',]

If I use name of the field as 'title" I have a problem in frontend:
Multiple form field elements in the same form have the same id attribute value. This might prevent the browser from correctly autofilling the form.
To fix this issue, use unique id attribute values for each form field.

It happends because of title name already used with dialog-header.

Or I wrong?

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