A

Admin • 833.24K Points
Coach

Q. Which option allows a field to be used as a primary key?

  • (A) key=True
  • (B) unique=True
  • (C) primary=True
  • (D) primary_key=True
  • Correct Answer - Option(D)
  • Views: 34
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

primary_key=True makes the field the primary key of the model.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.