Re: help needed in ModelForm __unicode__

2010-03-26 Thread Kenneth Gonsalves
On Friday 26 Mar 2010 3:38:10 pm Emanuel wrote: > both combo's. > I want to filter only men or women depending the case. Is it possible? Or > should I create another method for independent cases? If it is the > solution how can I use it? I'm not getting there because it is a instance > of a cla

Re: help needed in ModelForm __unicode__

2010-03-26 Thread Daniel Roseman
On Mar 26, 10:08 am, Emanuel wrote: > Hi! > > I Have this model: > class Person(models.Model): >     user = models.ForeignKey(User) >     nr = models.IntegerField(blank=True,) >     gender = models.CharField(max_length=1, blank=True, > choices=gender_choices) > >     def __unicode__(self): >      

help needed in ModelForm __unicode__

2010-03-26 Thread Emanuel
Hi! I Have this model: class Person(models.Model): user = models.ForeignKey(User) nr = models.IntegerField(blank=True,) gender = models.CharField(max_length=1, blank=True, choices=gender_choices) def __unicode__(self): return self.user.get_full_name() I'm using