I'm trying to do a very simple thing but I couldn't find how to.
I have this function defined in my model class :
def __unicode__(self):
return "Object name = " + self.name
so in a template page, or in a views.py, I want to get this string.
in a template, I tried these and they didn't work :
{{ my_object }} {{ str(my_object) }} {{ my_object.self }}
What is the correct way of doing this?
Thanks !