We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6a258 commit 26111e2Copy full SHA for 26111e2
docs/backend/widgets.md
@@ -538,8 +538,8 @@ class AddForm(DefaultAddForm):
538
# Call parent to set-up initial widget data
539
super().updateWidgets(self, prefix=prefix)
540
541
- # Note we need to be discreet to different form modes (view, edit, hidden)
542
- if self.fields["sections"].mode == INPUT_MODE:
+ # Please note that the different form modes (show, edit, hide) have to be taken into account.
+ if self.widgets["sections"].mode == INPUT_MODE:
543
544
# Modify a widget with certain name for our purposes
545
widget = self.widgets["sections"]
0 commit comments