summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2020-08-06Refs #25513 -- Adjusted admin pagination to be 1-indexed.Nick Pope
2020-08-05Fixed #31854 -- Fixed wrapping of long model names in admin's sidebar.Mariusz Felisiak
2020-08-05Fixed #31853 -- Fixed wrapping of translated action labels in admin sidebar.007gzs
2020-08-05Refs #31493 -- Replaced var with const and let in JavaScriptCatalog template.Claude Paroz
2020-08-05Fixed #26977 -- Made abstract models raise TypeError when instantiating.Jacob Walls
2020-08-04Fixed #31842 -- Added DEFAULT_HASHING_ALGORITHM transitional setting.Mariusz Felisiak
It's a transitional setting helpful in migrating multiple instance of the same project to Django 3.1+. Thanks Markus Holtermann for the report and review, Florian Apolloner for the implementation idea and review, and Carlton Gibson for the review.
2020-08-01Updated translations from TransifexClaude Paroz
2020-07-31Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases.Alexandr Tatarinov
QuerySet.alias() allows creating reusable aliases for expressions that don't need to be selected but are used for filtering, ordering, or as a part of complex expressions. Thanks Simon Charette for reviews.
2020-07-30Removed unnecessary list() call in RelatedManager.add().Sergey Fedoseev
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-07-30Fixed #31822 -- Added support for comments URL per feed item.Viktor Garske
The item_comments hook returns a comments URL which is then used by the feed builder.
2020-07-30Refs #31829 -- Added ↵Tim Graham
DatabaseFeatures.json_key_contains_list_matching_requires_list. CockroachDB's behavior matches PostgreSQL.
2020-07-29Fixed #28507 -- Made ValidationError.__eq__() ignore messages and params ↵David Smith
ordering. Co-authored-by: caleb logan <clogan202@gmail.com>
2020-07-29Fixed #27395 -- Added sitemap 'alternates' generation.Florian Demmer
Updated the sitemap generator and default template to optionally include link elements with hreflang attribute to alternate language URLs.
2020-07-29Refs #27395 -- Added XML namespace declaration to sitemap template.Carlton Gibson
As per Google recommendations: https://support.google.com/webmasters/answer/189077?hl=en
2020-07-29Fixed #29324 -- Made SECRET_KEY validation lazy (on first access).Florian Apolloner
2020-07-29Fixed #31783 -- Fixed crash when filtering againts "negate" field.Hasan Ramezani
Thanks Simon Charette for the initial patch.
2020-07-28Fixed #31829 -- Used JSONField __contains lookup on key transforms.sage
2020-07-28Fixed #31836 -- Dropped support for JSONField __contains and __contained_by ↵Mariusz Felisiak
lookups on SQLite. The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-28Improved performance of STATIC_URL and MEDIA_URL setting access.Florian Apolloner
Run `add_script_prefix()` on first access, rather than on every time.
2020-07-28Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.Mariusz Felisiak
The current implementation works only for basic examples without supporting nested structures and doesn't follow "the general principle that the contained object must match the containing object as to structure and data contents, possibly after discarding some non-matching array elements or object key/value pairs from the containing object".
2020-07-28Refs #27996 -- Doc'd no extension required for RandomUUID() on PostgreSQL 13+.Nick Pope
https://www.postgresql.org/docs/13/functions-uuid.html https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.10.5
2020-07-27Fixed #31806 -- Made validators include the value in ValidationErrors.Jon Dufresne
2020-07-27Removed redundant forms.DecimalField.validate() in favor of DecimalValidator.Jon Dufresne
2020-07-27Fixed #31815 -- Fixed schema value encoding on PostgreSQL.Mariusz Felisiak
2020-07-24Fixed #31812 -- Fixed FileField.model for fields defined in abstract models.Matthias Kestenholz
Regression in a93425a37f4defdb31d4ca96bb3bf6da21f0b5ce.
2020-07-24Fixed #31802 -- Added system check for non-integer SITE_ID.Parth Verma
2020-07-22Fixed #31765 -- Disabled bundled SQLite renaming atomic references on macOS ↵Tom Forbes
10.15.
2020-07-22Reverted "Fixed #30300 -- Allowed migrations to be loaded from directories ↵Tim Graham
without __init__.py file." This reverts commit 3cd3bebe8921e14b911b36b2a1cbceef8fb6294e.
2020-07-21Fixed #31180 -- Configured applications automatically.Aymeric Augustin
2020-07-21Refs #31720 -- Defined default output_field of BoolAnd() and BoolOr() ↵David Chorpash
aggregate functions.
2020-07-20Fixed #31769 -- Improved default naming of merged migrations.Jon Dufresne
47 gives 60 in total (47 + 5 + 5 + 3).
2020-07-20Fixed #17653 -- Allowed using zero as AutoFields value on MySQL if ↵Mariusz Felisiak
NO_AUTO_VALUE_ON_ZERO SQL mode is enabled.
2020-07-20Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, ↵Florian Apolloner
and 3.8.4+. Fixed sending emails crash on email addresses with display names longer then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+. Wrapped display names were passed to email.headerregistry.Address() what caused raising an exception because address parts cannot contain CR or LF. See https://bugs.python.org/issue39073 Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-07-17Fixed #31731 -- Removed unreachable code for resetting sequences of ↵Ravindar Sharma
auto-created m2m tables in sequence_reset_sql(). Unreachable because f.remote_field.through is truthy for all m2m fields. Resetting sequences of auto-created m2m tables in sequence_reset_sql() is also unnecessary: - in sqlsequencereset since c39ec6dccb389fbb4047e44f5247e18bb76ae598 because auto-created tables are included in model_list, - in loaddata because there is no it need to reset sequences for models not loaded directly. - in create_default_site() because it doesn't have m2m fields.
2020-07-16Fixed #31623 -- Allowed specifying number of adjacent time units in ↵Tim Park
timesince()/timeuntil().
2020-07-16Stopped adapting DecimalField values to strings on Oracle.Mariusz Felisiak
cx_Oracle handles decimal.Decimal. expressions_case.tests.CaseExpressionTests.test_update_decimal fails without this change. Follow up to 9c5c9bd7091b60fdccc405890dc4f44a8010e954.
2020-07-16Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in ↵Mariusz Felisiak
HttpResponse.delete_cookie(). Cookies with the "SameSite" flag set to None and without the "secure" flag will be soon rejected by latest browser versions. This affects sessions and messages cookies.
2020-07-15Fixed #30446 -- Resolved Value.output_field for stdlib types.Simon Charette
This required implementing a limited form of dynamic dispatch to combine expressions with numerical output. Refs #26355 should eventually provide a better interface for that.
2020-07-14Added admin translatable string.Claude Paroz
Forward port of dda8a2aa1d31a4dc818a6950565811c7f32d352a from stable/3.1.x.
2020-07-14Added Igbo language.Kelechi Precious Nwachukwu
2020-07-14Refs #30446 -- Defined output_field of BoundingCircle() GIS database function.Simon Charette
This prevented the default behavior of BaseExpression._resolve_output_field from error'ing out when such functions accepted both expressions from mixed types (e.g. BoundingCircle(Polygon, num_seg=12)).
2020-07-14Stopped adapting DecimalField values to strings on PostgreSQL.Simon Charette
The psycopg2 backend uses the type information to provide type hints.
2020-07-14Refs #25425 -- Allowed unresolved Value() instances to be compiled.Simon Charette
Previously unresolved Value() instances were only allowed to be compiled if they weren't initialized with an output_field. Given the usage of unresolved Value() instances is relatively common in as_sql() overrides it's less controversial to add explicit support for this previously undefined behavior now and revisit whether or not it should be deprecated in the future.
2020-07-13Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson
2020-07-13Fixed #31770 -- Allowed select_for_update(of) on MySQL 8.0.1+.Simon Charette
2020-07-13Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes
2020-07-10Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.ovkulkarni
2020-07-10Refs #30578 -- Made SelectDateWidget.format_value() independent of USE_L10N.Claude Paroz
2020-07-10Sorted conflicting migrations by names.François Freitag