Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-21 Thread Daniel Marquez
Wow, I should've caught that. Thanks guys. However, since I needed a string, what I did was add "default=x" to the integer field as follows: class Phone(models.Model): phonenumber = models.IntegerField(default=10) pub_date = models.DateTimeField('date published') def __unic

I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-20 Thread Daniel Marquez
Hey all, I am a beginner django user. I am going through the tutorial, but when I post the following I get the TypeError: coercing to unicode: class Phone(models.Model): phonenumber = models.IntegerField() pub_date = models.DateTimeField('date published') def __unicode__