πŸ“Š Django
Q. What does `unique=True` mean in Django models?
  • (A) Field must be primary key
  • (B) Field must not be empty
  • (C) Field value must be unique
  • (D) Field must be indexed
πŸ’¬ Discuss
βœ… Correct Answer: (C) Field value must be unique

Explanation: `unique=True` ensures no two rows can have the same value for that field.

Explanation by: Mr. Dubey
`unique=True` ensures no two rows can have the same value for that field.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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