S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of these is used to create relationships between Django models?

  • (A) models.Relation()
  • (B) models.ForeignKey()
  • (C) models.Join()
  • (D) models.Link()
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Django
  • Hashtags:

Explanation by: Shyam Dubey
models.ForeignKey is used to create a many-to-one relationship between models.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.