InlineModelAdmin needs a model that has foreign keys that define the
relationship.
Since the relationship is kept in a table that has no (explicit)
model, I'm not sure how to do this.

I've got it working in the cases where I use an Intermediary model,
but am stumped in the cases where I don't have one.

Here is the example from
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#working-with-many-to-many-intermediary-models
without the Intermediary table.

class Person(models.Model):
    name = models.CharField(max_length=128)

class Group(models.Model):
    name = models.CharField(max_length=128)
    members = models.ManyToManyField(Person)

How would I create a TabularInline to edit the Groups on the Person
interface?

-- Christopher Dodd

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