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

  • (A) OneToOneField
  • (B) ForeignKey
  • (C) ManyToManyField
  • (D) ManyToOneField
πŸ’¬ Discuss
βœ… Correct Answer: (B) ForeignKey
Explanation: ForeignKey is used to define one-to-many relationships in Django.
Explanation by: Mr. Dubey
ForeignKey is used to define one-to-many relationships in Django.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate