Answer the question
In order to leave comments, you need to log in
How to select from django images?
I have a model - Topic. I want that when creating an object of this model in an auto-generated form, in addition to the name and text, 5 pictures are displayed. The user could click on the picture, thereby assigning the desired image to the created topic.
I just can’t figure out how to do this, there is a clause in the documentation about the possibility of making a selection like this:
CHOICES = (
('choice1', 'choice1'),
('choice2', 'choice2'),
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question