Skip to content

Commit

Permalink
refactor wagtail hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Feb 20, 2025
1 parent dbccb51 commit 2a2efef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def prevent_deletion_if_linked(request, page):
@hooks.register("register_admin_urls")
def get_import_urls():
"""
Define additional admin URLs for various content import views.
Create additional admin URLs for various content import views.
"""
return [
path("import/", ContentUploadView.as_view(), name="import"),
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_stale_content_report_url():
@hooks.register("register_reports_menu_item")
def get_page_views_report_menu_item():
"""
Create a admin only sub menu item for the Page Views report.
Create an admin only sub menu item for the Page Views report.
"""
return AdminOnlyMenuItem(
"Page Views",
Expand Down

0 comments on commit 2a2efef

Please sign in to comment.