Re: annotate count with some condition

2013-04-11 Thread anothergituser
Sorry for the fake links, i don't know why it happend. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

annotate count with some condition

2013-04-11 Thread anothergituser
Hi, I ran in this today. Say i have these two models in my app called atest class Person(models.Model): name = models.CharField(max_length=255) age = models.IntegerField(null=True) class Car(models.Model): owner = models.ForeignKey('Person', related_name='cars') brand = models.Cha

Re: annotate count with condition

2013-04-11 Thread anothergituser
Sorry for all the fake links i don't know why it happend -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to th

annotate count with condition

2013-04-11 Thread anothergituser
Hi, I ran in this today. Say i have these two models in my app called atest class Person(models.Model): name = models.CharField(max_length=255) age = models.IntegerField(null=True) class Car(models.Model): owner = models.ForeignKey('Person', related_name='cars') brand = models.Cha

Re: easy-thumbnails

2013-04-11 Thread anothergituser
Did you try entity.photo.url ? Assuming that entity is a model and photo is a fileobject like field. On Friday, April 5, 2013 8:20:11 PM UTC+2, knowledge_seeker wrote: > > I am trying to learn to use easy-thumbnails, which is necessary for > Userena. Now, in the easy-thumbnails 'ReadMe' file it