| Age | Commit message (Collapse) | Author |
|
|
|
|
|
migrations.
|
|
Thanks Corey Farwell for the report and Tim Graham for the review.
Thanks also to Inada Naoki for creating and maintaining mysqlclient.
|
|
Thanks Bjarkias for the report.
|
|
|
|
Thanks gavinwahl for the report.
|
|
django.contrib.admin.helpers.InlineAdminForm.original_content_type_id
|
|
In some test combinations, having contrib.auth available but not
contrib.contenttypes can produce failures while creating permissions.
|
|
Thanks Naddiseo for the report, Andrew Godwin for guidance,
and Shai Berger for review.
|
|
That test might not always execute, but can be executed when the
parent test label is explicitely given.
|
|
|
|
|
|
Thanks dfunckt and Tim Graham.
|
|
Previously a RuntimeError was raised every time two models clashed
in the app registry. This prevented reloading a module in a REPL;
while it's not recommended to do so, we decided not to forbid this
use-case by turning the error into a warning.
Thanks @dfunckt and Sergey Pashinin for the initial patches.
|
|
This includes the following improvements:
- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
from a config string. Before the only way to get a style object was
through the environ and it also required that the terminal supported
colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
other Style objects. Previously it allowed anything to pass through
with __getattr__.
|
|
Thanks Tim Graham for the review.
|
|
Refs #23663.
|
|
This helps with testability of management commands.
Thanks to trac username daveoncode for the report and to
Tim Graham and Claude Paroz for the reviews.
|
|
|
|
Refs #23685.
|
|
Fixed a regression introduced by 28efafa24c.
Thanks Michal Čihař for the report and initial patch, and
Collin Anderson and Tim Graham for the reviews.
|
|
This commit reverts 67d7da5fb9498b811f0168f5df2308ad4743027f.
The previous fix changed the environment globally, which meant
that any call to `call_command(no_color=True)` prevented further
`call_command` with color.
This fix still relies on the environment because it's currently the only
way to reach WSGIRequestHandler, but it's now limited to the `runserver`
command. This seems an acceptable compromise considering `runserver` runs
indefinitely.
Thanks Tim Graham for the review.
|
|
|
|
|
|
This fixes a regression introduced by 2a31d00933.
Thanks tony-zhu for the report.
|
|
|
|
function
|
|
SafeText.
Thanks Baptiste Mispelon for the report.
|
|
Thanks Paul Dejean for the report.
|
|
Thanks Naddiseo for reporting.
|
|
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e.
call_command now always set skip_checks to True (tested in
user_commands).
|
|
Thanks Loic Bistuer for the report/review and Tim Graham for the
review.
|
|
`cache.tests.TestEtagWithAdmin` loaded views from the `admin_views` test
package. This is problematic because when the `cache` test package is
run in isolation, `admin_views` isn't in INSTALLED_APPS, and therefore
loading its models isn't allowed since the app loading refactor.
|
|
|
|
|
|
Thanks Ilya Baryshev for the report and Tim Graham for the review.
|
|
false positives.
|
|
The "check" name is a reserved word used by Django's check framework,
and cannot be redefined as something else other than a method, or the check
framework will raise an error.
This change amends the django.core.checks.model_check.check_all_models()
function, so that it verifies that a model instance's attribute "check"
is actually a method. This new check is assigned the id "models.E020".
|
|
|
|
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
|
|
Thanks Loic Bistuer and Simon Charette for the review.
|
|
|
|
|
|
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz
for the review.
|
|
|
|
This ensure that ''.join(c) in jslex.py always returns text.
|
|
Previous versions of the tests were buggy, as initial_data.json
did exist and the test wasn't failing. It was finally failing on
Python 3.4.2.
Thanks Raphaël Hertzog for the report (and Debian bug #765117
contributors).
|
|
Refs #23638. Older Python versions are less strict when parsing
invalid cookie content. The test just has to ensure Django doesn't
crash.
|
|
Thanks Philip Gatt for the report and Tim Graham for the review.
|