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, Marti
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
2 matches
Mail list logo