Which of the following is NOT a valid field option in Django models?
Correct answer
C. related_model
17 views
C. related_model
17 views
related_model is not a field option you can pass. default, choices and verbose_name are all valid options.
(related_model does exist as a read-only attribute on relation fields, but it is not something you set.) The option you probably want is related_name.
For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.