A

Admin • 833.24K Points
Coach

Q. Which of the following defines a one-to-many relationship?

  • (A) OneToOneField
  • (B) ForeignKey
  • (C) ManyToManyField
  • (D) ManyToOneField
  • Correct Answer - Option(B)
  • Views: 29
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

ForeignKey is used to define one-to-many relationships in Django.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.