Hi,

I'm fairly new to Django, so I've searched all over for an answer but
could not really find it. Maybe this is simple stuff, but anyway I
dont have enough information to judge, so I hope you guys can help
me...

I have the following many-to-many relation:

class Record(models.Model):
    name = models.CharField()
    tracks = models.ManyToManyField('Track')

class Track(models.Model):
    name = models.CharField()

This means that a Record has multiple Tracks, and a Track can belong
to many albums (compilations).

To make things easier for the content producers, the Record admin page
shows the m2m relation in an 'include/exclude list box', since I used
filter_horizontal = ('tracks',) in the ModelAdmin of the Record.

However, the Track admin page DOES NOT show the 'reverse' of the many-
to-many relation. I mean, I want to display the 'include/exclude list
box' that shows all the Records, so the user can choose the ones that
the Track may belong to.

What do I need to do to show this 'reverse' relation in the Track form
page?

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to