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

2009-02-06 Thread Grimmo
Hi! Thanks it works like a charm now! One last thing.. what if I want its effects to be limited only to the "add a new" admin page, and not to the "change" one? This solution always limits the query regarding of how many foreign keys exist when modifying an existing media object, sorry for not

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

2009-02-05 Thread Rajesh Dhawan
On Feb 5, 8:25 am, Grimmo wrote: > Hi, > I have these models for my application: > > class Movie (models.Model): > Title = models.CharField(max_length=100) > Director = models.CharField(max_length=100,blank=True) > Year =

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

2009-02-05 Thread Grimmo
Hi, I have these models for my application: class Movie (models.Model): Title = models.CharField(max_length=100) Director = models.CharField(max_length=100,blank=True) Year = models.CharField(max_length=100,blank=True) Backed_up = models.BooleanField(default=True)