Re: first newbie question

2009-01-10 Thread _Sebastian_
juhu, it works... I have to admit after reading my initial post again I could habe been more clear. So here my example & test case which now works with Umapathy S suggestion. I created a model: class Diameter(models.Model): thickener_diameter = models.SmallIntegerField() when I add a few

Re: first newbie question

2009-01-09 Thread Umapathy S
I usually do def __unicode__(self): return "%d" % self.question_number On Fri, Jan 9, 2009 at 2:42 PM, Eric Abrahamsen wrote: > > > On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > > > > Hi all, > > > > I've been following the tutorial > http://docs.djangoproject.com/en/dev/intro/tut

Re: first newbie question

2009-01-09 Thread Eric Abrahamsen
On Jan 9, 2009, at 10:19 PM, _Sebastian_ wrote: > > Hi all, > > I've been following the tutorial > http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api > and working on a own test-project as well. > > so I tried to adapt from > > class Poll(models.Model): >question =

first newbie question

2009-01-09 Thread _Sebastian_
Hi all, I've been following the tutorial http://docs.djangoproject.com/en/dev/intro/tutorial01/#playing-with-the-api and working on a own test-project as well. so I tried to adapt from class Poll(models.Model): question = models.CharField('question',max_length=200) def __unicode__(sel