summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2019-11-07Fixed #30943 -- Added BloomIndex to django.contrib.postgres.Nick Pope
2019-11-07Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and ↵Jon Dufresne
docs. Thanks Curtis Maloney for the original patch.
2019-11-07Refs #29983 -- Added support for using pathlib.Path in all settings.Jon Dufresne
2019-11-06Removed unused import of ACTION_CHECKBOX_NAME in django.contrib.admin.Mariusz Felisiak
Unused since e651b3095c950627b1eed1527f2bb011ddad03de.
2019-11-06Refs #29983 -- Added pathlib.Path support to the file email backend.Jon Dufresne
2019-11-05Passed strict=True to Path.resolve() to enforce that the path must exist.Jon Dufresne
2019-11-05Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with ↵Hasan Ramezani
lists and tuples.
2019-11-05Refs #30095 -- Added Field._choices_is_value().Hasan Ramezani
This allows fields classes to override the validation of choices' values.
2019-11-05Fixed DatabaseFeatures.has_select_for_update_nowait on MariaDB 10.3+.Mariusz Felisiak
Thanks Kola Erinoso for the report.
2019-11-05Fixed #30947 -- Changed tuples to lists in model Meta options in ↵Jon Dufresne
django.contrib modules. The Django "Model Meta options" docs provide examples and generally point the reader to use lists for the unique_together and ordering options. Follow our own advice for contrib models. More generally, lists should be used for homogeneous sequences of arbitrary lengths of which both unique_together and ordering are.
2019-11-04Added Uzbek locale formats.bedilbek
2019-11-04Added Uzbek language.Claude Paroz
2019-11-04Refs #13312 -- Simplified handling of nulls ordering on MySQL.Nick Pope
MySQL & MariaDB support the standard IS NULL and IS NOT NULL so the same workaround used for NULLS FIRST and NULLS LAST that is used for SQLite < 3.30.0 can be used. Thanks Simon Charette for the discussion.
2019-11-04Simplified consecutive calls to pathlib.Path.parent.Jon Dufresne
2019-11-04Fixed #30931 -- Restored ability to override Model.get_FIELD_display().Carlton Gibson
Thanks Sergey Fedoseev for the implementation idea. Regression in a68ea231012434b522ce45c513d84add516afa60.
2019-10-31Refs #13312 -- Removed unnecessary IF wrapping in nulls_last handling on MySQL.Simon Charette
ISNULL function already returns 0 and 1 on MySQL.
2019-10-31Refs #30095 -- Simplified Field._check_choices() a bit.Mariusz Felisiak
Using an internal is_value() hook to check whether Field.choices is iterable is misleading.
2019-10-31Fixed #30761 -- Prevented floatformat filter from returning a negative zero.Sky
2019-10-31Refs #28428 -- Made FileSystemStorage.save() to support pathlib.Path.Hasan Ramezani
2019-10-31Refs #23576 -- Disabled MySQL multi-alias deletion path on MariaDB 10.3.2+.Simon Charette
2019-10-30Refs #20456 -- Moved initialization of HEAD method based on GET to the ↵Felipe Lee
View.setup() for generic views. This will ease unit testing of views since setup will essentially do everything needed to set the view instance up (other than instantiating it). Credit for idea goes to Vincent Prouillet.
2019-10-30Refs #28428 -- Made filepath_to_uri() support pathlib.Path.Hasan Ramezani
2019-10-29Simplified AuthenticationMiddleware a bit.Sergey Fedoseev
SimpleLazyObject already caches value in _wrapped.
2019-10-29Fixed #30922 -- Fixed ModelAdmin.date_hierarchy queries with DST changes.Erwin Junge
There was an issue where admin date_hierarchy didn't render last day of a month in DST-switch month.
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-10-29Refs #30899 -- Made _lazy_re_compile() support bytes.Hasan Ramezani
2019-10-29Refs #30899 -- Moved _lazy_re_compile() to the django.utils.regex_helper.Hasan Ramezani
2019-10-28Fixed #30918 -- Made timesince()/timeuntil() respect custom time strings for ↵Hasan Ramezani
future and the same datetimes.
2019-10-28Fixed #30907 -- Fixed SplitArrayField.has_changed() with removal of empty ↵Pavel Dedik
trailing values.
2019-10-28Refs #30907 -- Added SplitArrayField._remove_trailing_nulls() hook.Pavel Dedik
2019-10-25Fixed #29770 -- Added LinearRing.is_counterclockwise property.Sergey Fedoseev
2019-10-25Fixed #29087 -- Added delete buttons for unsaved admin inlines on validation ↵Carlton Gibson
error.
2019-10-25Refs #29087 -- Refactored admin inlines.js.Carlton Gibson
Split logic into separate functions to clarify and allow reuse.
2019-10-25Fixed #30902 -- Added __str__() for model choice enums.Carlton Gibson
Allows expected behavior when cast to str, also matching behaviour of created instances with those fetched from the DB. Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews.
2019-10-24Refs #30897 -- Added support for ANALYZE option to Queryset.explain() on ↵Nick Pope
MariaDB and MySQL 8.0.18+.
2019-10-24Refs #30897 -- Added support for TREE format to Queryset.explain() on MySQL ↵Nick Pope
8.0.16+.
2019-10-24Fixed #23576 -- Implemented multi-alias fast-path deletion in MySQL backend.Simon Charette
This required moving the entirety of DELETE SQL generation to the compiler where it should have been in the first place and implementing a specialized compiler on MySQL/MariaDB. The MySQL compiler relies on the "DELETE table FROM table JOIN" syntax for queries spanning over multiple tables.
2019-10-24Fixed DatabaseFeatures.update_can_self_select on MariaDB 10.3.2+.Mariusz Felisiak
2019-10-24Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with ↵Hannes Ljungberg
opclasses and ordering.
2019-10-23Refs #30897 -- Added test for SETTINGS option to Queryset.explain() on ↵Nick Pope
PostgreSQL 12+.
2019-10-23Fixed #29919 -- Fixed RelatedOnlyFieldListFilter crash with reverse ↵Dan Moore
relationships.
2019-10-23Refs #26601 -- Removed obsolete workarounds for MIDDLEWARE_CLASSES setting.Sergey Fedoseev
2019-10-22Fixed typo in XViewMiddleware.process_view() docstring.Sergey Fedoseev
2019-10-21Updated link to GEOS C API header.Sergey Fedoseev
2019-10-21Fixed #20577 -- Deferred filtering of prefetched related querysets.Alex Aktsipetrov
Added internal interface to QuerySet that allows to defer next filter call till .query is accessed. Used it to optimize prefetch_related(). Thanks Simon Charette for the review.
2019-10-21Adjusted QuerySet._filter_or_exclude() call to use negated=False, rather ↵Alex Aktsipetrov
than None. None was a remnant from the times _filter_or_exclude accepted qtype/mapper as the first arg.
2019-10-21Fixed #30827 -- Made batch_size arg of QuerySet.bulk_create() respect ↵Ahmet Kucuk
DatabaseOperations.bulk_batch_size(). Thanks Chetan Khanna for tests.
2019-10-21Fixed #30876 -- Moved classproperty() decorator to the django.utils.functional.André Ericson
2019-10-21Fixed #30841 -- Deprecated using non-boolean values for isnull lookup.André Ericson
2019-10-18Fixed #27391 -- Implemented SimpleTestCase.debug().Pavel Savchenko
debug() should bubbled up exceptions if occurring in test, but behave the same as run() when no exceptions occurred.