summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-06Fixed #15742 -- Fixed an example of collecting selected objects in ↵Daniel Fairhead
ModelAdmin.actions docs. The queryset argument is already filtered, and request.POST doesn't contain all selected objects when "Select All" is used.
2019-11-06Refs #29983 -- Added tests for FileBasedCache pathlib support.Jon Dufresne
2019-11-06Refs #29983 -- Added pathlib.Path support to the file email backend.Jon Dufresne
2019-11-06Documented arguments for custom 500 error view.Dan Swain
2019-11-06Refs #30183 -- Doc'd dropping support for sqlparse < 0.2.2.Stephen Rauch
Support for sqlparse < 0.2.2 was broken in 782d85b6dfa191e67c0f1d572641d8236c79174c because is_whitespace property was added in sqlparse 0.2.2.
2019-11-06Added a link to the file email backend from EMAIL_FILE_PATH setting.Jon Dufresne
2019-11-06Refs #29983 -- Added test for FILE_UPLOAD_TEMP_DIR pathlib support.Jon Dufresne
2019-11-06Refs #29983 -- Added test for FIXTURES_DIRS pathlib support.Jon Dufresne
2019-11-05Fixed #30944 -- Changed reusable apps docs to use a declarative config.Jon Dufresne
2019-11-05Fixed #30928 -- Clarified MySQL/MariaDB support of ↵kola-er
QuerySet.select_for_update() options. Thanks Par Andersson for reporting the issue.
2019-11-05Passed strict=True to Path.resolve() to enforce that the path must exist.Jon Dufresne
2019-11-05Refs #30923 -- Fixed an example of rendering templates in contrib.sites docs.Alasdair Nicol
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-04Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.Mariusz Felisiak
Follow up to 97d3321e89c8d4434927bdbc308db1ccffa99d3b.
2019-11-04Removed unnecessary EXCLUDE_FROM_PACKAGES from setup.py.Jon Dufresne
Unnecessary since abc0777b63057e2ff97eee2ff184356051e14c47 where the extension was changed to not be ".py". Also, django.bin doesn't have a __init__.py file, so it is not a package and therefore it's not excluded by this argument.
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-04Refs #30116 -- Simplified stdout/stderr decoding with subprocess.run()'s ↵Jon Dufresne
encoding argument. The encoding argument has been available since Python 3.6. https://docs.python.org/3/library/subprocess.html#subprocess.run
2019-11-04Updated list of field types conversions in ModelForm docs.Adam Johnson
2019-11-04Simplified consecutive calls to pathlib.Path.parent.Jon Dufresne
2019-11-04Added release dates for 2.2.7, 2.1.14, and 1.11.26.Mariusz Felisiak
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-11-01Refs #27808 -- Added test for saving nested ArrayField with nullable base field.Hasan Ramezani
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-31Added more tests for floatformat filter with negative values.Sky
2019-10-31Refs #28428 -- Made FileSystemStorage.save() to support pathlib.Path.Hasan Ramezani
2019-10-31Refs #28428 -- Added tests for using FileSystemStorage with pathlib.Path.Hasan Ramezani
2019-10-31Refs #23576 -- Disabled MySQL multi-alias deletion path on MariaDB 10.3.2+.Simon Charette
2019-10-30Fixed typo in docs/ref/signals.txt.Gil Forcada Codinachs
2019-10-30Corrected error message in Many-to-many relationships docs.Mariusz Felisiak
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 #20456 -- Added test for initialization of request/args/kwargs ↵Felipe Lee
attributes in View.Setup().
2019-10-30Fixed #30927 -- Simplified an example of test for the deprecation warning ↵André Ericson
with assertWarnsMessage().
2019-10-30Refs #28428 -- Made filepath_to_uri() support pathlib.Path.Hasan Ramezani
2019-10-30Fixed #30917 -- Clarified formsets topic documentation.Ken Whitesell
2019-10-29Fixed #13750 -- Clarified need to reopen models.ImageField.image file to ↵Hasan Ramezani
access raw image data.
2019-10-29Fixed typo in docs/topics/files.txt.Mariusz Felisiak
2019-10-29Simplified AuthenticationMiddleware a bit.Sergey Fedoseev
SimpleLazyObject already caches value in _wrapped.
2019-10-29Used more specific unittest assertions in tests.Nick Pope
* assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False.
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-29Refs #30908 -- Added test for nonexistent path in forms.FilePathField.Hasan Ramezani