I found the problem.. I used :

                            def __unicode__(self):

function in my model. so it a can return only sting values. So if i
need to return a column of type integer or contains a foreign key how
should i do it??




On Nov 17, 4:28 pm, Lars Stavholm <[EMAIL PROTECTED]> wrote:
> Vicky wrote:
> > I tried to add some values to my table from admin site. Table has 3
> > columns one of integer type and other two of string type. When i tried
> > to save my entries it giving an error as:
>
> >              "coercing to Unicode: need string or buffer, int found"
>
> > How to solve it?
>
> That all depends on what your model looks like?
> /L
--~--~---------~--~----~------------~-------~--~----~
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