Changes between Initial Version and Version 3 of Ticket #22571
- Timestamp:
- May 16, 2014, 10:13:09 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22571
- Property Component Uncategorized → Documentation
- Property Triage Stage Unreviewed → Accepted
- Property Summary DateTimeField(auto_now_add=True) Breaks → Document implications of using auto_now_add=True and get_or_create
- Property Type Uncategorized → Cleanup/optimization
-
Ticket #22571 – Description
initial v3 1 1 Example: 2 {{{ 2 3 # Given this simple model 3 4 class Foo(models.Model): … … 30 31 date_added = some_datetime_obj 31 32 ) 32 33 33 34 print created 34 35 # >> False … … 36 37 Error: 37 38 django.db.utils.IntegrityError: duplicate key value violates unique constraint 38 39 }}} 39 40 40 41 These two links document the issue: