Re: ManyToManyField limit_choices_to that instance via Django admin.

2011-06-07 Thread Micky Hulse
Hi Ryan! Thanks so much for the reply, I really appreciate the help. :) On Tue, Jun 7, 2011 at 12:17 PM, Ryan wrote: > This is possible, but I'm not sure if you could do it via limit_choices_to. > The admin docs shows how to accomplish this here: Oooh, interesting. I will experiment with that so

Re: ManyToManyField limit_choices_to that instance via Django admin.

2011-06-07 Thread Ryan
This is possible, but I'm not sure if you could do it via limit_choices_to. The admin docs shows how to accomplish this here: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany Ryan -- You received this message because you are sub

ManyToManyField limit_choices_to that instance via Django admin.

2011-06-06 Thread mhulse
Hello, Here's some example code: [code] class Creative(...): file2 = models.ManyToManyField('Asset', ...) class Asset(...): file = models.FileField(...) [/code] Can I use limit_choices_to to limit "Asset" to only the files that were uploaded by the currently viewed "