i have a choices list :
CATEGORY_CHOICES = (
("T-shirts", "T-shirts"),
("Hoodies", "Hoodies"),
("Shorts", "Shorts"),
)
but i want to make this list dynamic so i can add and delete choices ,i created a new model Category what i want to do is something like this :
CATEGORY_CHOICES = (
for choice in Category.object.all():
(choice.category, "choice.category"),
)
but it doesn't seems to work