Skip to content

Commit

Permalink
fix wrong attribute name (#1822)
Browse files Browse the repository at this point in the history
* fix wrong attribute name

* Apply suggestions from code review

Co-authored-by: David Glick <[email protected]>

---------

Co-authored-by: David Glick <[email protected]>
  • Loading branch information
1letter and davisagli authored Dec 20, 2024
1 parent 6a6a258 commit 26111e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/backend/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ class AddForm(DefaultAddForm):
# Call parent to set-up initial widget data
super().updateWidgets(self, prefix=prefix)

# Note we need to be discreet to different form modes (view, edit, hidden)
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:

# Modify a widget with certain name for our purposes
widget = self.widgets["sections"]
Expand Down

0 comments on commit 26111e2

Please sign in to comment.