Re: help with admin screens and many2many model

2005-10-12 Thread Ranting Hippy
> > The current admin UI isn't capable of this. The many-to-many has to be > either in one or the other. thanks for the confirmation, saves me much effort. i'll direct my efforts elsewhere for now, however this does sound like a feature request, i'll make a ticket once i've thought it through a

Re: help with admin screens and many2many model

2005-10-11 Thread Adrian Holovaty
On 10/11/05, Ranting Hippy <[EMAIL PROTECTED]> wrote: > to say again I want the admin user interface to present widgets for *both* > sides of the many2many relationship, not just the one that has the > ManyToManyField declared for it. > > i have no idea if the current admin UI is capable of this;

Re: help with admin screens and many2many model

2005-10-11 Thread Ranting Hippy
thanks for the reply, but i'm after something more if you add the following to both classes in your code below -- class META: admin = meta.Admin() -- the admin screens provide an auto-generated use

Re: help with admin screens and many2many model

2005-10-11 Thread Sebastien Fievet
Hi, try this code : from django.core import meta class Article(meta.Model): headline = meta.CharField(maxlength=100) def __repr__(self): return self.headline class Publication(meta.Model): title

help with admin screens and many2many model

2005-10-11 Thread Ranting Hippy
how do i get both sides of a many2many relation to appear in the admin screens? using the model in this doc as an example:- http://www.djangoproject.com/documentation/models/many_to_many/ out of the box the admin screen for an Article will contain a field for the publications it belongs to -