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
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
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 "
3 matches
Mail list logo