mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.
This commit is contained in:
parent
93dd31cadf
commit
4d13cc56de
13 changed files with 19 additions and 15 deletions
|
@ -442,7 +442,7 @@ Consider the following example::
|
|||
|
||||
In statement 1, a new ``Person`` object is saved to the ``first``
|
||||
database. At this time, ``p`` doesn't have a primary key, so Django
|
||||
issues a SQL ``INSERT`` statement. This creates a primary key, and
|
||||
issues an SQL ``INSERT`` statement. This creates a primary key, and
|
||||
Django assigns that primary key to ``p``.
|
||||
|
||||
When the save occurs in statement 2, ``p`` already has a primary key
|
||||
|
@ -466,7 +466,7 @@ database::
|
|||
>>> p.save(using='second') # Write a completely new object.
|
||||
|
||||
The second option is to use the ``force_insert`` option to ``save()``
|
||||
to ensure that Django does a SQL ``INSERT``::
|
||||
to ensure that Django does an SQL ``INSERT``::
|
||||
|
||||
>>> p = Person(name='Fred')
|
||||
>>> p.save(using='first')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue