Q. Which of the following is used to create a one-to-many relationship in Django models?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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