From 7a33f1a41973a0fc6c54d5d89233c10307d39503 Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Thu, 24 Dec 2015 09:29:51 +1100 Subject: [PATCH] Fall back to title field first before using string rep for meta title. --- mezzanine/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mezzanine/core/models.py b/mezzanine/core/models.py index 43866662fd..eee3d740d8 100644 --- a/mezzanine/core/models.py +++ b/mezzanine/core/models.py @@ -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): """