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
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__
2 matches
Mail list logo