A

Admin • 828.03K Points
Coach

Q. Which model field is suitable for a fixed set of choices?

  • (A) CharField with max_length
  • (B) ChoiceField
  • (C) CharField with choices
  • (D) StringField
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
CharField with the choices attribute is used for predefined values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.