On 18 fév, 02:34, Lachlan Cannon <[EMAIL PROTECTED]> wrote:
> Jonathan Ballet wrote:
> > I think, we might use the __str__() method, since it seems the
> > simplest and cleanest way of doing this (a title is a sort of
> > presentation in fact). Or maybe, we will stick with the get_title()
> > method (or something like that ...)
>
> Don't forget, either, that you can use a get_title method with a property so 
> it
> looks like a title attribute, if you prefer. Aesthetically I prefer
> {{house.title}} to {{ house.get_title }}.

Indeed :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to