Changes between Initial Version and Version 1 of Ticket #36064, comment 4


Ignore:
Timestamp:
Jan 7, 2025, 2:41:46 AM (3 days ago)
Author:
Csirmaz Bendegúz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36064, comment 4

    initial v1  
    99
    1010Is that correct?
     11
     12{{{
     13foo = Model(id=1)
     14foo.save()
     15bar = Model(id=1)
     16# 1. if Model.id has a default, this raises IntegrityError
     17# 2. if Model.id doesn't have a default, this updates foo
     18bar.save()
     19}}}
Back to Top