Re: ManyToManyField limiting choices

2010-08-10 Thread Scott Gould
Define a custom ModelForm for your model that sets the appropriate queryset parameter (either altering the field in __init__, or just defining the field in the class as a ModelMultipleChoiceField). Then register that ModelForm for use in the admin (via a ModelAdmin class). On Aug 9, 7:51 pm,

ManyToManyField limiting choices

2010-08-09 Thread Martin Tiršel
Hello, I have a gallery model and an image model. First, I create some galleries, then I insert images into them. But now, I want to add multiple thumbnails feature for galleries (thumbnails representing the gallery, not thumbnails for images inside gallery), so I added ManyToManyField and