str(self) should return self.title instead of self.titles according to this 
line: 
https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/core/models.py#L77

which version are you using?

On Tuesday, December 22, 2015 at 4:01:18 PM UTC-6, Oliver Rutherfurd wrote:
>
> Hey, In the admin, the help text for Meta data => Title is "Optional title 
> to be used in the HTML title tag. If left blank, the main title field will 
> be used."  What I'm seeing in practice and from reading the code is that 
> .meta_title property calls str(self) if there's no ._meta_data value, and 
> that results in the Page.titles attribute being used instead of .title.  I 
> filed a bug report (https://github.com/stephenmcd/mezzanine/issues/1502), 
> since that behavior is not what the documentation implies, but was told 
> it's not a bug and to come here for help.  Because the .meta_title property 
> always returns a value and I can't access the underlying field 
> (._meta_title) because of the leading underscore, I don't see an easy way 
> to have the template emit the ._meta_title if there is one or fall back on 
> the .title if there isn't (in Jinja, I'd just do {{ page._meta_title or 
> page.title }}).  Any help would be appreciated.  Thanks, -Ollie
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to