form: don't let quixote3 assign a default id to widgets (#38095)
This commit is contained in:
parent
ce81160605
commit
1678d3b6a2
|
@ -295,6 +295,8 @@ class Form(QuixoteForm):
|
|||
del kwargs['advanced']
|
||||
QuixoteForm.add(self, widget_class, name, *args, **kwargs)
|
||||
widget = self._names[name]
|
||||
if 'id' not in kwargs and 'id' in widget.attrs:
|
||||
del widget.attrs['id']
|
||||
widget.advanced = advanced
|
||||
return widget
|
||||
|
||||
|
|
Loading…
Reference in New Issue