New course! Every coder should learn Generative AI!
Try a free lesson+ 1
I’d use json cuz im not familiar with db.
+ 1
If you want to render your form where is a field with options, maybe this helps you:
...
OPTIONS = [
('O1', 'Option 1'),
('O2',. 'Option 2'),
...
]
exam = models.CharField(
...
choices=OPTIONS,
...
)
...
This should be import in your forms.py file and then your form should be import in your views.py files.
I hope this helps you.