Skip to content
Permalink
Browse files

Changing the Admin/Page Display Title

  • Loading branch information...
KalobTaulien committed Aug 12, 2019
1 parent 1e21b34 commit 6109533ac446884158ea9811f1a34d18071e5ed1
Showing with 3 additions and 0 deletions.
  1. +3 −0 home/models.py
@@ -127,6 +127,9 @@ def the_subscribe_page(self, request, *args, **kwargs):
context = self.get_context(request, *args, **kwargs)
return render(request, "home/subscribe.html", context)

def get_admin_display_title(self):
return "Custom Home Page Title"

# # This will change the "title" field 's verbose name to "Custom Name".
# # But you'd still reference it in the template as `page.title`
# HomePage._meta.get_field("title").verbose_name = "Custom Name"

1 comment on commit 6109533

@KalobTaulien

This comment has been minimized.

Please sign in to comment.
You can’t perform that action at this time.