fields: don't let block fields be prefilled for now (#45261)

This commit is contained in:
Frédéric Péters 2020-07-19 22:13:14 +02:00
parent 2a7fe34ed5
commit b83e843056
1 changed files with 2 additions and 0 deletions

View File

@ -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'),