Commit Graph

24757 Commits

Author SHA1 Message Date
Emmanuel 27ef04bb5c Fixed #28349 -- Doc'd how to upgrade Django from LTS to LTS. 2017-07-24 13:33:30 -04:00
Rachel Tobin f9e5f9ae9f Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy model. 2017-07-21 18:21:13 -04:00
Tim Graham c6986a4ebf Refs #17453 -- Fixed broken link to #django IRC logs. 2017-07-21 18:09:48 -04:00
Tom Forbes 462f1589cd Refs #23919 -- Updated contrib.admin's compress.py to use pathlib. 2017-07-21 10:24:49 -04:00
Tom Carrick 3159ad4df6 Fixed #27970 -- Allowed QuerySet.in_bulk() to fetch on fields besides primary key. 2017-07-21 08:34:35 -04:00
Simon Charette 76236f0db2 Stopped setting BaseExpression.copied on copy().
Unused since its introduction in f59fd15c49.
2017-07-21 00:23:21 -04:00
Simon Charette 160969d970 Refs #24887 -- Stopped mutating a test expression during as_sql().
Also defined an explicit output_field as it was mixing an expression with an
IntegerField() with one with a DecimalField().
2017-07-21 00:23:01 -04:00
orf 7dfe03f86d Sorted display of options in Func.__repr__(). 2017-07-20 20:51:07 -04:00
Tim Graham 487362fa8f Fixed #28370 -- Deprecated the context arg of Field.from_db_value() and Expression.convert_value().
Unused since a0d166306f.
2017-07-20 16:30:08 -04:00
Sergey Fedoseev 8d5095d8a3 Added BaseSpatialField.get_db_prep_value() to simplify.
BaseSpatialField.get_db_prep_value() supersedes
BaseSpatialField.get_db_prep_save() and Geometry.get_db_prep_value().
2017-07-20 22:26:22 +05:00
Johannes Hoppe c19b56f633 Fixed #28377 -- Made combining form Media retain relative asset order.
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
2017-07-20 11:06:30 -04:00
Tim Graham f86b6f351d Refs #25588 -- Removed obsolete bits of RasterField support.
Unused since bbfad84dd9.
2017-07-20 10:09:36 -04:00
Sergey Fedoseev 3b56f2191d Simplified handling of GIS lookup params. 2017-07-20 10:08:55 -04:00
Sergey Fedoseev 9415fcfef6 Tested the case when the lhs of a raster lookup has an index specified and the rhs doesn't. 2017-07-20 09:05:45 -04:00
Sergey Fedoseev 37fbeb99f9 Removed unused models.DecimalField._format().
Unused since b3b71a0922.
2017-07-20 09:00:18 -04:00
Sergey Fedoseev 81a453ca0f Removed unneeded check in GeometryField.from_db_value().
Unneeded since 6f43b2b8a5.
2017-07-20 16:23:56 +05:00
Roman Selivanov d4da39685b Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget. 2017-07-19 14:28:06 -04:00
Sergey Fedoseev 3f7953846e Fixed typo in DistanceLookupBase.process_rhs() error message. 2017-07-19 13:40:56 -04:00
Sergey Fedoseev 196da41ee2 Removed SRID use in PostGISAdapter.__eq__() and __hash__().
EWKB already contains the SRID.
2017-07-19 10:04:15 -04:00
Mariusz Felisiak e06cab2600 Fixed #28411 -- Used cx_Oracle.Cursor.outputtypehandler instead of _rowfactory() on Oracle.
Thanks Tim Graham for the review.
2017-07-19 08:42:52 +02:00
Sergey Fedoseev dc738a0c76 Removed redundant lookup values in RasterFieldTest.test_all_gis_lookups_with_rasters.
These values produce already tested lookups and prevent another one from
being tested.
2017-07-18 15:01:09 -04:00
Tomer Chachamu 62917cee5a Doc'd the need to remove default ordering on Subquery aggregates. 2017-07-18 08:48:25 -04:00
Sergey Fedoseev 12812f6b2d Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.
It was inadvertently made a no-op in
378cf689d8.
2017-07-18 08:47:59 -04:00
Tim Graham 259875535b Removed unneeded right quotes in docs to fix spelling errors.
A regression in pyenchant caused a problem:
https://github.com/rfk/pyenchant/issues/93
2017-07-18 08:24:49 -04:00
Sergey Fedoseev 33d453b2a7 Removed unneeded hasattr(self.rhs, 'get_compiler') checks in db/models/lookups.py.
Unneeded since 9ae4362bec.
2017-07-18 08:24:01 -04:00
Srinivas Reddy Thatiparthy 71ff9a74cb Created a dedicated test directory for FilePathField tests. 2017-07-17 16:40:34 -04:00
Mariusz Felisiak 776cee9749 Fixed #28391 -- Fixed Cast() with CharField and max_length on MySQL.
Thanks Tim Graham for the review.
2017-07-17 21:12:27 +02:00
Tim Graham feeafdad02 Removed unused enter/exit methods of MySQL's CursorWrapper.
Unused since their introduction in e1d839237f.
2017-07-17 13:16:29 -04:00
jmk 841b464883 Fixed 403 link in docs/ref/contrib/gis/install/spatialite.txt. 2017-07-17 12:26:11 -04:00
Mariusz Felisiak e5835a7cb8 Allowed Func subclasses to add kwargs to __repr__().
Thanks Tim Graham for the review.
2017-07-17 10:07:19 -04:00
Florian Apolloner adab280cef Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and intersection() queries. 2017-07-15 08:20:12 -04:00
Sergey Fedoseev 9290f15bb5 Simplified GIS Funcs by using GeoFuncMixin.geo_field. 2017-07-15 15:03:50 +05:00
Sergey Fedoseev 504ce3914f Fixed #28394 -- Allowed setting BaseExpression.output_field (renamed from _output_field). 2017-07-14 21:56:01 -04:00
Srinivas Reddy Thatiparthy 5debbdfcc8 Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it. 2017-07-14 13:06:51 -04:00
Tim Graham 2e9ada1551 Fixed #28397 -- Removed django.core.exceptions.DjangoRuntimeWarning. 2017-07-14 12:06:06 -04:00
Sergey Fedoseev fc2dee6908 Removed unused branch in __getattr__() of Oracle and MySQL cursor wrappers. 2017-07-14 09:14:21 -04:00
Sergey Fedoseev 18db55bb31 Replaced Oracle CursorIterator with generator expression. 2017-07-14 14:15:00 +05:00
Tim Graham 37b2602c89 Refs #28174 -- Added 1.11.4 release note for Python 2 runserver autoreload fix.
Forwardport of fc6b90bdb7 from stable/1.11.x
2017-07-13 13:42:27 -04:00
Sergey Fedoseev 59cad72636 Simplified GEOSCoordSeq._checkindex(). 2017-07-13 12:46:59 -04:00
Sergey Fedoseev be8d5bd703 Added test for GEOSCoordSeq.__getitem__(). 2017-07-13 12:46:59 -04:00
Sergey Fedoseev 8ab2ae4404 Removed unneeded index check in LineString._set_single() as index is already checked in __getitem__().
Unneeded since its introduction in 66e1670efa.
2017-07-13 11:41:00 -04:00
Sergey Fedoseev ce834d0891 Removed unused ListMixin._checkindex() correct kwarg.
Unused since its introduction in 66e1670efa.
2017-07-13 11:39:06 +05:00
Tim Graham e532bf7a90 Removed GeometryField.get_distance(); a GeoQuerySet leftover.
Follow up to a0d166306f.
2017-07-12 21:23:25 -04:00
Sergey Fedoseev 815a0bb80d Refs #28020 -- Removed obsolete GeometryCollection.json.
Unused since 12d0567aa5.
2017-07-12 15:11:11 -04:00
Windsooon e19b9d6015 Merged nested if statements in BaseFormSet.is_valid(). 2017-07-12 14:13:03 -04:00
Sergey Fedoseev 138a78ec8c Made LineString.__iter__() return iter() from internal GEOSCoordSeq both for simplicity and performance. 2017-07-12 22:13:57 +05:00
Sergey Fedoseev 1a742ea33b Added test for LineString.__iter__(). 2017-07-12 22:13:45 +05:00
Sergey Fedoseev 83440a1258 Refs #28389 -- Added release note and test for pickling of LazyObject when wrapped object doesn't have __reduce__().
Forwardport of 30f334cc58 from stable/1.11.x
2017-07-12 09:30:29 -04:00
Sergey Fedoseev 59a4b12a23 Refs #23919 -- Removed LazyObject.__getstate__() needed only on Python 2. 2017-07-12 13:14:49 +05:00
Jon Dufresne d7881d2020 Fixed #22229 -- Added primary key validation to BaseModelFormSet._construct_form(). 2017-07-11 14:33:21 -04:00