Q. Which option defines a model field that automatically adds the current timestamp on creation?

  • (A) created_time=True
  • (B) auto_created=True
  • (C) auto_now_add=True
  • (D) datetime=True
πŸ’¬ Discuss
βœ… Correct Answer: (C) auto_now_add=True
Explanation: auto_now_add=True automatically sets the field to now when the object is created.
Explanation by: Rakesh Yadav
auto_now_add=True automatically sets the field to now when the object is created.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
89%
Success Rate