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 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':False}) > > http://docs.djangoproject.com/en/dev//ref/models/fields/#manytomanyfield > > -RD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---