Mariusz Felisiak
3b4b36fb1d
Moved MockedPasswordResetTokenGenerator outside of TokenGeneratorTest.test_timeout().
2019-11-13 14:22:23 +01:00
George Marshall
8be79984dc
Fixed #30971 -- Prevented Query.resolve_lookup_value() from coercing list values to tuples.
...
Regression in 8a281aa7fe
.
2019-11-13 08:27:26 +01:00
Mariusz Felisiak
b93a0e34d9
Refs #29926 -- Doc'd Python 3.8 compatibility in Django 2.2.x.
2019-11-12 22:11:44 +01:00
Mariusz Felisiak
30359496a3
Added stub release notes for 2.2.8 release.
2019-11-12 14:37:59 +01:00
David Foster
6a04e69e68
Fixed #30828 -- Added how to remove/insert many-to-many relations in bulk to the database optimization docs.
2019-11-12 12:44:41 +01:00
Hasan Ramezani
4b78546ef1
Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter.
2019-11-12 11:31:12 +01:00
Hasan Ramezani
e8de188c06
Refs #30405 -- Added ExceptionReporter._get_source().
2019-11-12 09:44:23 +01:00
Hannes Ljungberg
6e2f05b2e3
Fixed #30967 -- Fixed TrigramTest failures on PostgreSQL 12+.
2019-11-11 12:58:49 +01:00
Mariusz Felisiak
08c0d8b16b
Fixed typo in docs/topics/files.txt.
2019-11-11 11:51:39 +01:00
Hasan Ramezani
2282d9f2e5
Fixed #30252 -- Clarified need to reopen forms.fields.ImageField.image file to access raw image data.
2019-11-11 11:48:16 +01:00
Hasan Ramezani
4cec3cc82a
Fixed #30977 -- Optimized PasswordResetForm.save() a bit.
...
Moved site variables assignment outside of the loop.
2019-11-11 10:40:04 +01:00
Farhaan Bukhsh
4cb15450ad
Fixed #30958 -- Used a clearer example in the Cast() docs.
2019-11-11 09:42:53 +01:00
Jon Dufresne
85efc14a2e
Fixed #30948 -- Changed packaging to use declarative config in setup.cfg.
...
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2019-11-08 14:14:13 +01:00
Jon Dufresne
eee4da3b57
Refs #30948 -- Updated install instructions to use pip instead of setup.py.
...
Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2019-11-08 13:26:35 +01:00
Carlton Gibson
a32f983be8
Doc'd archiving historical branches as git tags.
2019-11-08 12:09:59 +01:00
Hasan Ramezani
153c7956f8
Fixed #24858 -- Added support for get_FOO_display() to ArrayField and RangeFields.
...
_get_FIELD_display() crashed when Field.choices was unhashable.
2019-11-08 10:59:24 +01:00
Shipeng Feng
8058d9d7ad
Fixed #30955 -- Doc'd that only concrete base models are stored in historical models bases.
...
Abstract models are removed from bases when generating historical model
state since 6436f1fad9
.
2019-11-08 09:41:36 +01:00
Hannes Ljungberg
6d590bcf1f
Fixed #30961 -- Fixed spaces in columns list SQL generated for indexes.
2019-11-08 08:52:47 +01:00
Hannes Ljungberg
d5af43c8d1
Refs #30961 -- Added tests for columns list SQL generated for indexes.
2019-11-08 08:35:39 +01:00
Mariusz Felisiak
58c1acb1d6
Updated Python license for 2019.
2019-11-07 15:30:14 +01:00
Nick Pope
7b915ba8e8
Clarified that license is BSD 3-Clause in package metadata.
2019-11-07 14:36:46 +01:00
Nick Pope
02983c5242
Fixed #30943 -- Added BloomIndex to django.contrib.postgres.
2019-11-07 11:23:53 +01:00
Jon Dufresne
26554cf5d1
Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and docs.
...
Thanks Curtis Maloney for the original patch.
2019-11-07 11:11:27 +01:00
Jon Dufresne
77aa74cb70
Refs #29983 -- Added support for using pathlib.Path in all settings.
2019-11-07 10:26:22 +01:00
René Fleschenberg
367634f976
Replaced 'n_' prefix with 'number_of_' in docs/topics/db/queries.txt.
2019-11-07 09:22:13 +01:00
Farhaan Bukhsh
cc5622ec8c
Fixed #30865 -- Doc'd that not all DATABASES['OPTIONS'] are passed to command-line client.
2019-11-07 08:04:40 +01:00
Jon Dufresne
39791c8e6d
Harmonized Windows checks in tests to a single style.
2019-11-06 15:14:30 +01:00
Jon Dufresne
e3c2fae4cd
Adjusted expected exception message for Windows.
...
Test failure introduced in fbbff7f808
.
Windows uses a different error message when a non-path is passed to
os.path functions.
2019-11-06 14:34:44 +01:00
Mariusz Felisiak
4c45b627f8
Removed unused import of ACTION_CHECKBOX_NAME in django.contrib.admin.
...
Unused since e651b3095c
.
2019-11-06 12:49:42 +01:00
Daniel Fairhead
e651b3095c
Fixed #15742 -- Fixed an example of collecting selected objects in 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-06 12:49:27 +01:00
Jon Dufresne
74f2a58b3a
Refs #29983 -- Added tests for FileBasedCache pathlib support.
2019-11-06 10:01:01 +01:00
Jon Dufresne
fbbff7f808
Refs #29983 -- Added pathlib.Path support to the file email backend.
2019-11-06 09:33:07 +01:00
Dan Swain
422b875c65
Documented arguments for custom 500 error view.
2019-11-06 09:08:15 +01:00
Stephen Rauch
4b6db766ba
Refs #30183 -- Doc'd dropping support for sqlparse < 0.2.2.
...
Support for sqlparse < 0.2.2 was broken in
782d85b6df
because is_whitespace property
was added in sqlparse 0.2.2.
2019-11-06 08:45:43 +01:00
Jon Dufresne
c8debd5061
Added a link to the file email backend from EMAIL_FILE_PATH setting.
2019-11-06 08:24:49 +01:00
Jon Dufresne
1c4c68dfed
Refs #29983 -- Added test for FILE_UPLOAD_TEMP_DIR pathlib support.
2019-11-06 08:20:23 +01:00
Jon Dufresne
92e5abd7a3
Refs #29983 -- Added test for FIXTURES_DIRS pathlib support.
2019-11-06 08:06:55 +01:00
Jon Dufresne
89368ab6e3
Fixed #30944 -- Changed reusable apps docs to use a declarative config.
2019-11-05 14:58:09 +01:00
kola-er
d94d7b113c
Fixed #30928 -- Clarified MySQL/MariaDB support of QuerySet.select_for_update() options.
...
Thanks Par Andersson for reporting the issue.
2019-11-05 14:34:40 +01:00
Jon Dufresne
edeec1247e
Passed strict=True to Path.resolve() to enforce that the path must exist.
2019-11-05 14:22:20 +01:00
Alasdair Nicol
b991eefd3a
Refs #30923 -- Fixed an example of rendering templates in contrib.sites docs.
2019-11-05 12:41:14 +01:00
Hasan Ramezani
47379d027b
Fixed #30095 -- Fixed system check for RangeField/ArrayField.choices with lists and tuples.
2019-11-05 11:48:44 +01:00
Hasan Ramezani
dc60597eb6
Refs #30095 -- Added Field._choices_is_value().
...
This allows fields classes to override the validation of choices'
values.
2019-11-05 11:48:44 +01:00
Mariusz Felisiak
a20ea33ca6
Fixed DatabaseFeatures.has_select_for_update_nowait on MariaDB 10.3+.
...
Thanks Kola Erinoso for the report.
2019-11-05 10:18:47 +01:00
Jon Dufresne
b9fe7f9294
Fixed #30947 -- Changed tuples to lists in model Meta options in 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-05 08:16:31 +01:00
Mariusz Felisiak
e5cacb1f47
Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.
...
Follow up to 97d3321e89
.
2019-11-04 10:20:30 -08:00
Jon Dufresne
cff6b14b27
Removed unnecessary EXCLUDE_FROM_PACKAGES from setup.py.
...
Unnecessary since abc0777b63
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-04 15:36:10 +01:00
bedilbek
09a00c60bd
Added Uzbek locale formats.
2019-11-04 14:50:55 +01:00
Claude Paroz
6ccb1b68bc
Added Uzbek language.
2019-11-04 14:50:00 +01:00
Nick Pope
7286eaf681
Refs #13312 -- Simplified handling of nulls ordering on MySQL.
...
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-04 14:47:58 +01:00