S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which field is best used for storing a small set of integer choices?

  • (A) PositiveSmallIntegerField
  • (B) IntegerField with choices
  • (C) CharField
  • (D) AutoField
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
IntegerField with the choices attribute is suitable for storing integer options.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.