Changes between Initial Version and Version 3 of Ticket #22571


Ignore:
Timestamp:
May 16, 2014, 10:13:09 AM (10 years ago)
Author:
Russell Keith-Magee
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22571

    • Property Component UncategorizedDocumentation
    • Property Triage Stage UnreviewedAccepted
    • Property Summary DateTimeField(auto_now_add=True) BreaksDocument implications of using auto_now_add=True and get_or_create
    • Property Type UncategorizedCleanup/optimization
  • Ticket #22571 – Description

    initial v3  
    11Example:
     2{{{
    23# Given this simple model
    34class Foo(models.Model):
     
    3031    date_added = some_datetime_obj
    3132)
    32 
     33 
    3334print created
    3435# >> False
     
    3637Error:
    3738django.db.utils.IntegrityError: duplicate key value violates unique constraint
    38 
     39}}}
    3940
    4041These two links document the issue:
Back to Top