| Age | Commit message (Collapse) | Author |
|
defaults.
Also added a compatibility check for changed middleware defaults.
|
|
Backport of 9980f67154 from master
|
|
settings.
An ImproperlyConfigured exception will be raised they mismatch.
Backport of 1c58cabad7 and a2cd0e12c9 from master
|
|
state.
Thanks to bendavis78 for the test and diagnostic work.
|
|
The data migration failed on Oracle, killing the entire test suite.
Thanks timo for reporting the Oracle breakage,
and andrewgodwin for suggesting the solution.
Backport of 64d94cf from master
|
|
Thanks Rahul Priyadarshi.
Backport of 99f5ea9cc8 from master
|
|
And moved `tablespaces` option tests to it.
The new folder can be used to test models/options, like the new option
added in refs #22778.
Backport of 5a3ae7e260 from master
|
|
This patch is two-fold; first it ensure that Django does close everything in
request.FILES at the end of the request and secondly the storage system should
no longer close any files during save, it's up to the caller to handle that --
or let Django close the files at the end of the request.
Backport of e2efc8965edf684aaf48621680ef54b84e116576 from master.
|
|
Backport of d8f19bb3b6 from master
|
|
Backport of fea8ccdcc4 from master
|
|
This is achieved by inserting a fake entry in connection.queries when
not releasing a savepoint (since Oracle doesn't support that operation.)
Also removed the can_release_savepoints feature that was recently added,
but is superseded by this solution.
Backport of 40bfd856 from master.
|
|
|
|
Conflicts:
tests/test_runner/tests.py
|
|
Conflicts:
django/db/backends/creation.py
django/test/runner.py
docs/ref/settings.txt
docs/topics/testing/advanced.txt
|
|
|
|
|
|
|
|
|
|
|
|
Backport of daaeb84158 from master.
|
|
This attribute (used for reverse dependencies) was previously declared
and mentioned in the code, but never actually used.
|
|
Fixes #22605, #22735; also lays the ground for some other fixes.
Conflicts:
django/db/migrations/autodetector.py
|
|
|
|
|
|
Previously this was conflated with another Oracle-specific behavior.
Backport of a03d38d from master.
|
|
Several database backends struggle with binary data. This change
minimizes the risk of unrelated tests failures when binary fields
trigger errors.
|
|
This allows these tests to run on databases that reject duplicate NULL
values in unique fields e.g. SQL Server.
|
|
Backport of 083d285b82 from master
|
|
Removed the FieldError raised by ModelBase.__new__ in this case.
Backport of ce993efda8 from master
|
|
Backport of a31d7c48b0 from master
|
|
fields with choices"
This reverts commit 9d1987d7679165ad3a7c2b713a8a488cc1421905.
Backport of 5046c110cf from master
|
|
fields.
refs #19195.
Backport of d04e730224 from master
|
|
Thanks to Trac alias tbartelmess for the report and the test project.
Backport of 7a38f88922 from master
|
|
This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.
Backport of 83e7555ffee305c1ea1e0655fd1f0aa35269533f from master.
|
|
Thanks apollo13 for the review.
Backport of 6f4d7f41b1 from master
|
|
|
|
`makemigrations` will automatically create the package specified
in `MIGRATION_MODULES` if it doesn't already exist.
Thanks ovidiuc4 for the report.
|
|
|
|
|
|
Backport of d240b29c08 from master
|
|
Backport of 1dcc603eff from master
|
|
Backport of bf9953cfb8 from master
|
|
|
|
This makes it possible to run django.setup() in management commands that
don't need a settings module. In addition it simplifies error handling.
Thanks Claude for the review.
Backport of 4865326f from master.
|
|
`makemigrations --dry-run` will output the complete migrations file
that would be written if it's used along with `--verbosity 3`.
Backport of 2e613ea5c5 from master
|
|
Backport of ee51ab9d232e52d17cd5ad32e230fd715cffe638 from master.
|
|
Backport of 536ebaa048f69c18aa36448074f65f2741e35df5 from master.
|
|
Made the fix in InteractiveMigrationQuestioner class code, rather than
MigrationAutodetector, because --dry-run shouldn't affect whether
MigrationAutodetector will detect non-nullable fields, but the
questioner should skip the question and returns a None for default
(since that won't be used anyway) if --dry-run is used.
Backport of ee14961a2a from master
|
|
Refs #8620.
If we allow any value to remove form fields then we get name clashes
with method names, media classes etc. There was a backwards
incompatibility introduced meaning ModelForm subclasses with declared
fields called media or clean would lose those fields.
Field removal is now only permitted by using the sentinel value None.
The docs have been slightly reworded to refer to removal of fields
rather than shadowing.
Thanks to gcbirzan for the report and initial patch, and several of the
core team for opinions.
Backport of 9fb0f5dddc4cf7f2d294af1bcde2c359cffd90a5 from master
|
|
This will also trigger the ready method of any tested application,
which was not run before.
Backport of 19b4908206 from master.
|