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):
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
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:
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
4 matches
Mail list logo