| Age | Commit message (Collapse) | Author |
|
side effects.
|
|
|
|
|
|
|
|
Thanks to chrisedgemon for the report and shaib, akaariai and
timgraham for the review.
|
|
Also fixes #18192 and #21055.
|
|
Thanks Tim Graham for the review.
|
|
|
|
Thanks to cdestigter for the report.
|
|
This reverts commit 4fdd51b73240bf9c8d9472fcc45df699f0714755.
See the ticket for concerns with this implementation; it will be revisited.
|
|
|
|
Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.
Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.
sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.
Many people contributed to both tickets, thank you all, and especially
Claude for the review.
Refs #22401.
|
|
|
|
Oracle.
|
|
- Fixed bug in get_callable() that caused resolve() to put a string
in ResolverMatch.func.
- Made ResolverMatch.url_name match the actual url name (or None).
- Updated tests that used the string value in ResolverMatch.func, and
added regression tests for this bug.
- Corrected test urls whose dummy view paths caused failures (behavior
that was previously masked by this bug).
|
|
cache.add() incorrectly succeeded when there was an existing key
with an infinite (None) timeout.
|
|
functools.partial.
Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054.
Thanks rcoup for the report.
|
|
This is a security fix; disclosure to follow shortly.
|
|
This is a security fix. Disclosure will follow shortly.
|
|
Thanks Benjamin Bach for the report and initial patch.
This is a security fix; disclosure to follow shortly.
|
|
|
|
Removed old test runner test cases.
|
|
|
|
|
|
|
|
|
|
|
|
The model_inheritance_same_model_name tests couldn't be run without the
model_inheritance tests. Make the problem go away by merging them.
Thanks timo for the report.
|
|
These files were added as part of #12658, which pertained to the old django.test.simple test runner. No tests call them anymore.
|
|
|
|
Changed the migration autodetector to remove models last so that FK
and M2M fields will not be left as dangling references. Added a check
in the migration state renderer to error out in the presence of
dangling references instead of leaving them as strings. Fixed a bug
in the sqlite backend to handle the deletion of M2M fields with
"through" models properly (i.e., do nothing successfully).
Thanks to melinath for report, loic for tests and andrewgodwin and
charettes for assistance with architecture.
|
|
|
|
|
|
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce.
It's causing a regression when tested with the proxy_model_inheritance tests.
|
|
Changed the migration autodetector to remove models last so that FK
and M2M fields will not be left as dangling references. Added a check
in the migration state renderer to error out in the presence of
dangling references instead of leaving them as strings. Fixed a bug
in the sqlite backend to handle the deletion of M2M fields with
"through" models properly (i.e., do nothing successfully).
Thanks to melinath for report, loic for tests and andrewgodwin and
charettes for assistance with architecture.
|
|
in favor of installing sqlparse."
This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6.
This introduced a regression on MySQL and custom SQL is deprecated.
|
|
Thanks tomwys for the suggestion.
|
|
Thanks maciej.pawlisz for the report, and charettes for the review.
|
|
|
|
|
|
Ticket 18586
|
|
Refactored get_or_create test into several smaller test functions across two
different test classes. Also converted the comments over to docstrings.
|
|
|
|
|
|
Thanks to @treyhunner and Loïc for their suggestions and review.
|
|
Thanks Claude Paroz for the report.
|
|
Regression introduced by commit 9777442. Refs #21410.
|
|
Refs #20032, #18824. Thanks ztorstri at gmail.com for the report.
|
|
Thanks aptiko for the reporti and Tim Graham for the review.
|
|
Thanks intgr for the report.
This commit doesn't include a test because I don't know how to emulate a
database disconnection in a cross-database compatible way.
Also simplified a 'backends' test that was constrained by this problem.
|