Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DialogModelForm title problem #170

Open
amikphoto opened this issue Oct 10, 2024 · 0 comments
Open

DialogModelForm title problem #170

amikphoto opened this issue Oct 10, 2024 · 0 comments

Comments

@amikphoto
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant