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
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):
>
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
3 matches
Mail list logo