2011/4/19 Juan Pablo Romero Méndez <jpablo.rom...@gmail.com>: > Is it possible to create unidirectional relations within django's orm? > > What I mean is a situation where a parent has a children_set of > references to children, but the children don't have any reference to > the father.
See the documentation for ForeignKey.related_name: http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name. In particular, note the part about what `related_name="+"` does. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.