Hi, I've some models with a ForeignKey like this
class Object1
name = models.varchar(max_length=50)
class Object2
name = models.varchart(max_length=50)
referenced_field = models.ForeignKey(Object1)
class Object3
name = models.varchart(max_length=50)
referenced_field = models.ForeignKey(Object1)
It's possible to follow "all" reverse relationship whitout specify a
lowercase name of the model?
I want to avoid to specify something like this:
referenced = Object1.objects.all(object2__referenced_field=...
referenced = Object1.objects.all(object3__referenced_field=...
--
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.