πŸ“Š Django
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

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Rakesh Yadav
Publisher
πŸ“ˆ
82%
Success Rate