| Age | Commit message (Collapse) | Author |
|
Co-authored-by: Adam Johnson <me@adamj.eu>
|
|
Since #26291 forward references in natural keys are properly handled by
loaddata, so sorting depenencies in dumpdata doesn't need to break on
cycles. This patch allows circular references in natural keys by
breaking sort_depenencies() on loops.
|
|
without natural keys.
|
|
|
|
without natural keys.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Mariusz Felisiak for auditing.
|
|
|
|
fixtures.
|
|
|
|
|
|
|
|
a fixture due to NUL characters.
|
|
|
|
Thanks Squareweave for the django-loaddata-stdin project from which this
is adapted.
|
|
|
|
|
|
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
TestCase subclasses are wrapped in a transaction that prevents any data from
being persisted between test runs andi thus don't require limiting the tables
to be flushed to a subset of available apps like TransactionTestCase subclasses
do.
|
|
|
|
|
|
Thanks Kevin Graham Foster for the report and Tim Graham for the review.
|
|
Thanks Alex Morozov for the initial patch.
|
|
|
|
|
|
|
|
appropriate.
|
|
Thanks to mpasternak for the report and Tim Graham for the review.
|
|
Django's test suite often tries to load fixture files from apps that have
no fixtures at all. This creates a lot of unnecessary disabling and
enabling of constraints which can be expensive on some database.
To speed this up, loaddata now first checks if any fixture file matches.
If no fixture file is matched, then the command exits before disabling
and enabling of constraints is done.
The main benefit of this change is seen on MSSQL, where tests on
Django 1.8 run hours faster.
|
|
|
|
This prevented the temporary directory from being removed
on Windows.
|
|
ForeignKey/OneToOneField
|
|
Thanks Gwildor Sok for the report and Tim Graham for the review.
|
|
|
|
|
|
|
|
fully-qualified package names.
|
|
|
|
Added a running count of the objects processed by loaddata when
verbosity >= 3.
|
|
|