Skip to content

Commit

Permalink
Fix deprecation warning from classnames on MenuItem
Browse files Browse the repository at this point in the history
Fixes wagtail-nest#57 - use icon_name to specify the icon instead.
  • Loading branch information
gasman committed Jan 25, 2024
1 parent 5e14076 commit ff27b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail_airtable/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def is_shown(request):
menu_item = MenuItem(
"Airtable Import",
reverse("airtable_import_listing"),
classnames="icon icon-cog",
icon_name="cog",
order=1000,
)
menu_item.is_shown = is_shown
Expand Down

0 comments on commit ff27b83

Please sign in to comment.