Boris Burkov
d67cce4da8
Fixed typo in django/db/models/query.py docstring.
2017-09-05 15:28:37 -04:00
Josh Schneier
48c394a6fc
Fixed #28555 -- Made CharField convert whitespace-only values to the empty_value when strip is enabled.
2017-09-05 12:41:38 -04:00
Tim Graham
79ae5811c7
Added 2017-12794 to the security release archive.
2017-09-05 12:09:44 -04:00
Tim Graham
46e2b9e059
Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of technical 500 debug page.
...
This is a security fix.
2017-09-05 10:58:38 -04:00
Tim Graham
73b6d02747
Added stub release notes for security releases.
2017-09-05 10:58:38 -04:00
François Freitag
663946463d
Removed hardcoding from get_earliest_or_latest tests' tearDown().
2017-09-05 10:04:22 -04:00
Sergey Fedoseev
2ef4b4795e
Refs #28518 -- Improved performance of loading geometries from DB.
2017-09-05 09:54:57 -04:00
Sergey Fedoseev
c309ec0824
Simplified admin.widgets.url_params_from_lookup_dict().
2017-09-05 09:47:11 -04:00
Sergey Fedoseev
3633c2a045
Used dict comprehensions in BaseMemcachedCache.get_many() and set_many() for better readability.
2017-09-05 09:14:41 -04:00
Mariusz Felisiak
179b247e07
Removed useless condition from Oracle's NullBooleanField's check constraint.
...
NULL cannot be compare with standard operators on Oracle, it works only
with IS NULL and IS NOT NULL operators. Therefore 'OR ... IS NULL'
condition in NullBooleanField's check constraint is redundant.
Nullability is checked in a separate constraint.
2017-09-05 11:17:06 +02:00
Mariusz Felisiak
3ba4de59a2
Added tests for BooleanField/NullBooleanField's check constraints on Oracle.
2017-09-05 09:02:56 +02:00
Mads Jensen
f4135783ad
Fixed #28126 -- Added GistIndex to contrib.postgres.
...
Thanks to Marc Tamlyn for the initial patch.
2017-09-04 21:08:02 -04:00
Nick Pope
66657eb01f
Improved messages in IndexErrors raised by GDAL objects.
2017-09-04 19:00:32 -04:00
Nick Pope
0d9e1163e8
Fixed #28569 -- Corrected get_layer_by_name prototype to skip error checking.
...
All other get_*_by_name functions have errcheck=False. This makes it
return None for an invalid name instead of raising a GDALException.
2017-09-04 18:56:23 -04:00
Jonatas CD
c9b22707b0
Fixed #28479 -- Doc'd that transaction rollback doesn't revert model state.
2017-09-04 15:43:29 -04:00
Jeremy Satterfield
0891503fad
Fixed #28493 -- Made migrations autodetector find dependencies for model renaming.
2017-09-04 15:15:39 -04:00
Michael
3f2b1d926b
Fixed #28568 -- Fixed typo in docs/ref/models/database-functions.txt.
...
And made an example use naming consistent with the rest of the doc.
2017-09-04 14:40:56 -04:00
Sebastian Sassi
5848305218
Fixed #28082 -- Made BaseDateListView pass context from get_dated_items() to subclasses.
...
Thanks leon-matthews for the report and fix.
2017-09-04 10:55:18 -04:00
Srinivas Reddy Thatiparthy
0d3f567a7a
Corrected YearComparisonLookup.get_bound() signature.
2017-09-04 10:17:51 -04:00
Igor Tokarev
af35c69a3c
Fixed #26344 -- Made EmailMessage include alternatives when the body is empty and it has attachments.
2017-09-04 08:46:11 -04:00
Berker Peksag
d81c86d32c
Fixed typo in docs/releases/1.10.txt.
2017-09-04 08:40:07 -04:00
Nick Pope
dea4cfb95b
Refs #27804 -- Used subTest() in a modeladmin test.
2017-09-03 21:20:43 -04:00
Nick Pope
9397d3add4
Fixed #28558 -- Simplified code to remove OGRIndexError.
...
The test is a regression for refs #4740 to show that the original fix of
OGRIndexError is no longer needed.
This is similar to the removal of GEOSIndexError in
197b187810
.
2017-09-03 21:19:37 -04:00
Mads Jensen
feb1a0a692
Refs #27804 -- Used subTest() in a syndication test.
2017-09-03 20:40:50 -04:00
caleb logan
68f0e8d8b1
Fixed #28500 -- Fixed crash in FileBasedCache._is_expired() if the cache file is empty.
2017-09-03 20:11:49 -04:00
ZachLiuGIS
2dacc2ccd9
Fixed #28550 -- Restored contrib.auth's login() and logout() views' respect of positional arguments.
...
Regression in 78963495d0
.
Forwardport of f8e0557b01
from stable/1.11.x
2017-09-03 12:06:44 -04:00
Mariusz Felisiak
fe0184b412
Updated EmpytResultSet import not to use the alias.
2017-09-03 11:06:06 -04:00
Nick Pope
35800acf79
Refs #25225 -- Removed test for removed ListMixin._IndexError.
...
Unused since 197b187810
.
2017-09-03 10:44:52 -04:00
Tim Graham
2fc5a5bfe3
Removed stray versionadded/changed annotations for 1.10.
2017-09-02 21:47:01 -04:00
Mariusz Felisiak
2470756de0
Moved select_sql in SQLCompiler.get_extra_select() to improve performance.
2017-09-02 16:39:51 -04:00
jkrzy
48d92fea67
Fixed #28367 -- Doc'd how to override management commands.
2017-09-02 16:21:13 -04:00
LBerrocal
54f7aa04a7
Fixed #28306 -- Completed test coverage for django.utils.lorem_ipsum.
...
Thanks Idan Melamed for the original patch.
2017-09-02 15:50:43 -04:00
Jeremy Satterfield
473ab4610e
Fixed #28332 -- Fixed diamond inheritence example in docs.
2017-09-02 14:10:41 -04:00
Simon Meers
60443e84b3
Fixed #17985 -- Documented ModelAdmin.lookup_allowed().
2017-09-02 13:54:33 -04:00
Nick Pope
11f4c52ec7
Fixed #28525 -- Documented GDAL and GeoIP exceptions.
2017-09-02 09:10:18 -04:00
Berker Peksag
90fcf0fce7
Fixed typos in docs/releases/1.10.txt.
2017-09-02 09:09:07 -04:00
Nick Pope
adc07e8f90
Simplified index bounds checking in GDAL objects.
2017-09-02 09:04:01 -04:00
Nick Pope
f9c2fd30be
Fixed #28559 -- Removed contrib.gis.gdal.OGRException backwards compatibility alias.
2017-09-02 08:52:01 -04:00
François Freitag
18dd9ba481
Fixed test in auth_tests modifying data from setUpTestData().
2017-09-01 21:43:41 -04:00
Tim Graham
6e4a34580d
Fixed #28557 -- Fixed ForeignKey/OneToOneField/ManyToManyField argument name in docs.
2017-09-01 20:03:32 -04:00
Tim Graham
04050bff30
Refs #26522 -- Forwardported 1.11.5 release note.
2017-09-01 16:41:39 -04:00
Nick Pope
cbb27d603b
Reordered GeoIP docs be consistent with GDAL/GEOS ordering.
2017-09-01 09:48:25 -04:00
Nick Pope
49017dc13a
Made GeoIP docs headers consistent with other GIS docs.
2017-09-01 09:44:41 -04:00
Tim Graham
9075805570
Refs #23276 -- Fixed explanation of how calling views works.
...
"Importing the view" is no longer applicable after
a9fd740d22
.
2017-08-31 11:57:46 -04:00
Jeremy Kerr
84b7cb7df0
Fixed #28549 -- Fixed QuerySet.defer() with super and subclass fields.
...
Previously, deferring fields in different classes didn't omit the
superclass' deferred field.
Thanks Simon Charette for the suggested fix.
2017-08-31 09:35:05 -04:00
Tim Graham
e5bd585c6e
Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy.
...
Previously, it was a QuerySet which could reevaluate to a new value if the
model's data changes. This is inconsistent with other Field.value_from_object()
methods.
This allows reverting the fix in the admin for refs #27998 .
2017-08-31 09:34:44 -04:00
Nick Pope
ec6481246a
Fixed #28524 -- Fixed program name in management commands when using 'python -m django'.
2017-08-31 09:22:25 -04:00
Sergey Fedoseev
f0d9ede9e6
Removed useless itertools.chain() call in ChoiceWidget.optgroups().
2017-08-31 08:04:36 -04:00
Tim Graham
11cd46930e
Refs #28487 -- Forwardported 1.11.5 release note.
2017-08-31 08:00:47 -04:00
Sergey Fedoseev
ab3e3658cc
Simplified model's Options._get_fields() a bit.
2017-08-31 07:11:30 -04:00