Q. What is the correct way to create a reverse relation in a Django model?

  • (A) related_name
  • (B) reverse_model
  • (C) model_link
  • (D) related_field
πŸ’¬ Discuss
βœ… Correct Answer: (A) related_name
Explanation: `related_name` is used to specify the reverse relation name.
Explanation by: Mr. Dubey
`related_name` is used to specify the reverse relation name.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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