On Nov 15, 7:55 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> This should do the job:
>
> User.objects.filter(posts__parent__pk=1).distinct()
That does the trick. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On Sat, 2008-11-15 at 17:09 -0800, Will McCutchen wrote:
> Hi all,
>
> I've got the following models (simplified for this example):
>
> from django.db import models
> from django.contrib.auth.models import User
>
> class Chat(models.Model):
> name = models.CharField(max_length=256)
>
>
Hi all,
I've got the following models (simplified for this example):
from django.db import models
from django.contrib.auth.models import User
class Chat(models.Model):
name = models.CharField(max_length=256)
class Post(models.Model):
user = models.ForeignKey(User,
3 matches
Mail list logo