Ticket #3118: fixing_dbapi_doc_erratta.diff

File fixing_dbapi_doc_erratta.diff, 995 bytes (added by ymasuda <ymasuda@…>, 18 years ago)

Fixing errata on db-api.txt documentation (file extension was corrected to .diff sorry for noise).

  • db-api.txt

     
    142142or ``UPDATE`` SQL statements. Specifically, when you call ``save()``, Django
    143143follows this algorithm:
    144144
    145     * If the object's primary key attribute is set to a value that evaluates to
    146       ``False`` (such as ``None`` or the empty string), Django executes a
    147       ``SELECT`` query to determine whether a record with the given primary key
    148       already exists.
     145    * If the object's primary key attribute is set to a value that
     146      evaluates to ``True`` (whatever excluding ``None`` or an empty
     147      string), Django executes a ``SELECT`` query to determine whether a
     148      record with the given primary key already exists.
    149149    * If the record with the given primary key does already exist, Django
    150150      executes an ``UPDATE`` query.
    151151    * If the object's primary key attribute is *not* set, or if it's set but a
Back to Top