Re: Many to many ajax widget for admin

2010-08-02 Thread Carlos Ricardo Santos
Already tried to find a better approach without success, raw_id is now the best option. On 2 August 2010 10:54, Sævar Öfjörð wrote: > If someone is interested, > I just used raw_id_fields in my intermediary inline modeladmin. > > class AuthorshipInline(admin.TabularInline):

Re: Many to many ajax widget for admin

2010-08-02 Thread Sævar Öfjörð
If someone is interested, I just used raw_id_fields in my intermediary inline modeladmin. class AuthorshipInline(admin.TabularInline): raw_id_fields = ('author',) This isn't exactly what I was going for, but it takes the really big select fields out of the picture. - Sævar On Jul 27, 5:24 

Re: Many to many ajax widget for admin

2010-07-26 Thread ringemup
You might want to check out grappelli and its Related Lookups feature: http://code.google.com/p/django-grappelli/ On Jul 26, 4:30 pm, Sævar Öfjörð wrote: > Hi > > I have some models (Song and Author) that are related through an > intermediary model (Authorship) like this:

Many to many ajax widget for admin

2010-07-26 Thread Sævar Öfjörð
Hi I have some models (Song and Author) that are related through an intermediary model (Authorship) like this: class Song(models.Model) authors = models.ManyToManyField('Author', through='Authorship') class Author(models.Model) name = models.CharField(max_length=255) class