Skip to content

Commit

Permalink
Fall back to title field first before using string rep for meta title.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmcd committed Dec 23, 2015
1 parent fdb4d92 commit 7a33f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezzanine/core/models.py
Expand Up @@ -146,7 +146,7 @@ def meta_title(self):
Accessor for the optional ``_meta_title`` field, which returns
the string version of the instance if not provided.
"""
return self._meta_title or str(self)
return self._meta_title or getattr(self, "title", str(self))

def description_from_content(self):
"""
Expand Down

0 comments on commit 7a33f1a

Please sign in to comment.