Hi everyone,

I'm using 1.0 final. I have the following models:

Page
SidebarModule
PageSidebarModule (the intermediary table)

When I have SidebarModule defined as a simple ManyToMany in Page, the
admin is quite happy to display the list of choices.

When I define:

class Page(models.Model):
    sidebar_modules = models.ManyToMany(SidebarModule, blank=True,
null=True, through='PageSidebarModule')

The admin no longer shows Sidebar Modules as a fieldset. In fact, it
doesn't show at all. I'm sure this is because you can't use add,
create or assignment to create the relationships, (see
http://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany).

Long story short, the only extra field I need in that ManyToMany is a
"position" column, so I can do my own ordering. Does anyone have any
advice or a solution they wouldn't mind sharing? I would sincerely
appreciate your time.

Thanks in advance,
Brandon
--~--~---------~--~----~------------~-------~--~----~
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