fields: don't let block fields be prefilled for now (#45261)
This commit is contained in:
parent
2a7fe34ed5
commit
b83e843056
|
@ -2651,6 +2651,8 @@ class BlockField(WidgetField):
|
|||
|
||||
def fill_admin_form(self, form):
|
||||
super().fill_admin_form(form)
|
||||
if form.get_widget('prefill'):
|
||||
form.remove('prefill')
|
||||
form.add(IntWidget, 'max_items', title=_('Maximum number of items'),
|
||||
value=self.max_items)
|
||||
form.add(StringWidget, 'add_element_label', title=_('Label of "Add" button'),
|
||||
|
|
Loading…
Reference in New Issue