Hello!

I'm trying to figure out if it is possible to disable the creation of
a reverse relation field when defining relations between models.
Something like this example:

class Route(models.Model):
    start = models.ForeignKey (Location,
related_name='starting_points')
    finish = models.ForeignKey (Location,
related_name='finishing_points')

(This example is taken from
http://groups.google.com/group/django-users/browse_thread/thread/fdc728fbdf23a862/3cb58e3a15efa394?lnk=gst&q=reverse+related_name#3cb58e3a15efa394)

Is the above example the reverse relations created by the foreign keys
in Route will have the same same if we don't change the names via
related_name. Is there someway to skip the reverse relations entirely?

Regards,
Mattias

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to