Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from taggit.models import Tag

from wagtailmetadata.models import MetadataPageMixin
from wagtail.images.models import Image

Expand Down Expand Up @@ -69,5 +70,11 @@ def get_meta_image(self):
# whatever is the default social share image. Which could be `None`!
return default_social_share_image

def get_admin_display_title(self):
title = self.draft_title or self.title
if self.locale:
return f"({self.locale.language_code}) {title}"
return title

class Meta:
abstract = True