| Age | Commit message (Collapse) | Author |
|
and natural keys for tests.
Made deserialize_db_from_string() do not sort dependencies.
deserialize_db_from_string() doesn't use natural keys, so there is no
need to sort dependencies in serialize_db_to_string(). Moreover,
sorting models cause issues for circular dependencies.
|
|
objects.
|
|
data for tests.
deserialize_db_from_string() loads the full serialized database
contents, which might contain forward references and cycles. That
caused IntegrityError because constraints were checked immediately.
Now, it loads data in a transaction with constraint checks deferred
until the end of the transaction.
|
|
PostgreSQL.
Thanks Florian Apolloner, Tim Graham, Simon Charette, Nick Pope, and
Mariusz Felisiak for reviews.
|
|
values on Oracle.
This is currently not actively used, since the ORM will ask the
SQL compiler to only return auto fields.
|
|
Thanks Ramiro for the input and Tim for the review.
|
|
|
|
|
|
|
|
ForeignKey/OneToOneField
|
|
|
|
is within limits of the database.
Thanks russellm for report and Tim Graham for review.
|
|
Several database backends struggle with binary data. This change
minimizes the risk of unrelated tests failures when binary fields
trigger errors.
Forward-port of 2e4bcb9b from stable/1.7.x.
|
|
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
Thanks thibaultj for the report, jenh for the patch,
and charettes for the tests.
|
|
Queries can contain binary data undecodable with utf-8. In this
case, using the 'replace' errors mode when decoding seems like
an acceptable representation of the query.
Thanks Marcel Ryser for the report.
|
|
creating constraints on the intermediary models.
|
|
|