This is documented here:
https://docs.djangoproject.com/en/dev/topics/python3/#str-and-unicode-methods:-)

Cheers,
Horst


On Mon, Apr 8, 2013 at 4:42 PM, L Radhakrishna Rao
<[email protected]>wrote:

> I was following tutorials of django book, where python 2.7 version is used.
>
> I am using python 3.2 version and django 1.5.
>
> The django book chapter 5 'Adding Model String Represenations' needs to be
> changed while publishing book for python 3.x version.
>
> The 'def__unicode__(self)' does not work if Python3.x version is used.
>
> When I implemented the same code with  'def __str__(self):', the model
> string got retrieved.
>
> If the change is done, please discard my thread.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-developers?hl=en
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to