Re: limiting admin inlines by limit_choices_to

2009-05-22 Thread Eric
On May 22, 5:38 pm, mrts wrote: > Looks like a general refactoring of admin queryset handling is needed. > That would also cater for this use case (InlineAdmin objects > supporting queryset() would solve your case). > > Seehttp://code.djangoproject.com/ticket/11019andhttp://code.djangoproject.c

Re: limiting admin inlines by limit_choices_to

2009-05-22 Thread mrts
Looks like a general refactoring of admin queryset handling is needed. That would also cater for this use case (InlineAdmin objects supporting queryset() would solve your case). See http://code.djangoproject.com/ticket/11019 and http://code.djangoproject.com/ticket/10761 . On May 22, 10:24 am, E

limiting admin inlines by limit_choices_to

2009-05-22 Thread Eric Abrahamsen
I've got a Model A with a foreignkey to Model B, which is limited to certain instances of Model B using limit_choices_to in the foreign key. If I set up the admin so that Model A instances are editable inline through Model B instances, all Model B instance change forms get forms for Model A inline