| Age | Commit message (Collapse) | Author |
|
|
|
|
|
querysets ordered by annotations.
|
|
This was implemented with a property getter and setter when introduced
in 0207bdd2d4157c542c981264c86706b78ca246e9.
There is nothing special occurring here though - a simple read from and
assign to the underlying private attribute.
|
|
Actions added to AdminSite.actions would not have the first character
of their description capitalized.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
|
|
|
|
Modern setups on Windows support terminal colors.
The colorama library may also be used, as an
alternative to the ANSICON library.
|
|
autogenerated default keys.
Thanks Nick Pope, René Fleschenberg, and Carlton Gibson for reviews.
|
|
|
|
|
|
Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com>
|
|
|
|
|
|
Direct styles might be forbidden by Content Security Policies.
|
|
tracebacks.
|
|
3.10+.
An iterator was added to memoryview in Python 3.10,
see https://bugs.python.org/issue41732
Refs #30294
|
|
argv argument.
This caused crash in environments where sys.argv[0] is incorrectly set
to None.
|
|
annotations on PostgreSQL.
|
|
BaseSpatialFeatures.supports_geography.
|
|
Unused since 26996e2d55719deb0a0b85c642c88658c929106c.
|
|
This also replaces assertQuerysetEqual() to
assertSequenceEqual()/assertCountEqual() where appropriate.
Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
|
|
|
|
|
|
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
|
|
|
|
Thanks Johannes Maron and Nick Pope for reviews.
|
|
|
|
Regression was introduced by fff5186 but was due a long standing issue.
AggregateQuery was abusing Query.subquery: bool by stashing its
compiled inner query's SQL for later use in its compiler which made
select_format checks for Query.subquery wrongly assume the provide
query was a subquery.
This patch prevents that from happening by using a dedicated
inner_query attribute which is compiled at a later time by
SQLAggregateCompiler.
Moving the inner query's compilation to SQLAggregateCompiler.compile
had the side effect of addressing a long standing issue with
aggregation subquery pushdown which prevented converters from being
run. This is now fixed as the aggregation_regress adjustments
demonstrate.
Refs #25367.
Thanks Eran Keydar for the report.
|
|
|
|
Thanks Nick Pope for review and complement.
|
|
Positive(Big/Small)IntegerFields.
|
|
|
|
With an error in the loop above (e.g. using query without args), this
would trigger a busy loop. While this was caused due to changes to the
loop itself, it seems to be just good practice to protect against this.
|
|
Thanks Mark Gajdosik for the report and initial patch.
|
|
Changes in behavior include:
- Accepting iteration over empty sequences, updating nothing.
- Accepting iterable of 2-tuples providing key-value pairs.
- Failing with the same or comparable exceptions for invalid input.
Notably this replaces the previous attempt to catch TypeError which was
unreachable as the call to .items() resulted in AttributeError on
non-dict objects.
|
|
If the warning provided was an instance of Exception, then it would be
used as-is. In practice this is untested, unused and ImmutableList is
an undocumented internal datastructure.
|
|
The usage of the --password flag when invoking the mysql CLI has the
potential of exposing the password in plain text if the command happens
to crash due to the inclusion of args provided to
subprocess.run(check=True) in the string representation of the
subprocess.CalledProcessError exception raised on non-zero return code.
Since this has the potential of leaking the password to logging
facilities configured to capture crashes (e.g. sys.excepthook, Sentry)
it's safer to rely on the MYSQL_PWD environment variable instead even
if its usage is discouraged due to potential leak through the ps
command on old flavors of Unix.
Thanks Charlie Denton for reporting the issue to the security team.
Refs #24999.
|
|
|
|
Regression in 42c08ee46539ef44f8658ebb1cbefb408e0d03fe.
Thanks Simon Charette for the review.
|
|
|
|
Co-authored-by: Collin Anderson <collin@onetencommunications.com>
|
|
This enables the admin to display the month as locale's abbreviated
name if %b is used in the date format.
|
|
As mentioned in the pre-existing split_exclude() docstring EXISTS is
easier to optimize for query planers and circumvents the IN (NULL)
handling issue.
|
|
By making Query subclass BaseExpression in
35431298226165986ad07e91f9d3aca721ff38ec the former defined it's
identity based off _construct_args which is not appropriate.
|
|
multi-value relations.
|
|
|
|
Thread sensitive parameter is True by default from asgiref v3.3.0.
Added an explicit thread_sensitive=False to previously implicit uses.
|
|
Matches signatures of other contribute_to_class() methods.
|