Changes between Initial Version and Version 1 of Ticket #29260


Ignore:
Timestamp:
Mar 25, 2018, 6:17:39 PM (7 years ago)
Author:
user0007
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29260 – Description

    initial v1  
    1 Using model's instance:
     1Using a model's instance:
    22
    33{{{
     
    2020}}}
    2121
    22 Using model's manager method:
     22Using a model's manager method:
    2323
    2424{{{
     
    2828}}}
    2929
     30Using a model's instance with `force_insert` argument:
     31
     32{{{
     33>> account = Account()
     34>> account.title = "abc"
     35>> account.save(force_insert=true)
     36
     371. INSERT INTO "app_account" ("title", "id") VALUES (\'abc\', \'3d8c1b3c-214a-4798-a0fa-d4c22c2b877f\'::uuid)
     38}}}
     39
    3040
    3141Related issue? https://code.djangoproject.com/ticket/29129
Back to Top