Skip to content

Commit

Permalink
Slightly simplify disable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Keeble committed Dec 6, 2023
1 parent b5dbe68 commit 7f01e1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/admin_ui/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def formfield_callback(f, disabled_fields=[], **kwargs):
}
)

if f.name in disabled_fields:
kwargs["disabled"] = True
kwargs["disabled"] = f.name in disabled_fields
return f.formfield(**kwargs)


Expand Down

0 comments on commit 7f01e1e

Please sign in to comment.