Filtering the admin "add" page with manytomany foreign key attribute

2009-02-05 Thread Grimmo
face list only movies not yet backed up(i.e. Backed_up == False) when I add a new Media object. At present, I have to choose from all Movie objects when I add the foreign key to the Media. Is it possible to do that without using javascript tricks and ho

Re: Filtering the admin "add" page with manytomany foreign key attribute

2009-02-06 Thread Grimmo
bject, sorry for not pointing it out earlier! Grimmo > Try the limit_choices_to attribute on your M2M field: > > MoviesContained = models.ManyToManyField(Film, > related_name="related_support", verbose_name="movies", > limit_choices_to={'Backed_up':Fa