Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.
@Daniel
Your __unicode__ should always return a string so like Shawn said,
when you check your phone model, its __unicode__ method should be
returning str() or unicode() not int
On 2/20/12, Shawn Milochik <shawn@milochik.com> wrote:
> Read the error message in your subject line. Then look at the
> __unicode__ method of your Phone model. It appears that this is the
> problem, and not the Device model.
>
> --
> 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
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
Sent from my mobile device
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home