Hello list. I have a question. Whit a model like this
----------------------------------------------------------------------
class Ghi(models.model):
dat = models.IntegerField(unique =True)
class Def(models.Model):
ghis = models.ForeignKeyField(Ghi)
class Abc(models.Model):
defs = models.ManyToManyField(Def)
----------------------------------------------------------------------
And from my view I return something like
Abc.objects.all()
Are some way to ask in the template something like:
exists in Abc.defs.ghis.dat == 1?
thanks for read.
P.D.: Django 1.2.1
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.