Commit Graph

4726 Commits

Author SHA1 Message Date
Tim Graham f7b0532ec0 Refs #28334 -- Fixed crash in hstore/citext oid caching during test db creation. 2017-09-19 07:04:31 -04:00
Johannes Hoppe 94cd8efc50 Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ManyToManyField in the admin.
Thanks Florian Apolloner and Tim Graham for review and
contributing to the patch.
2017-09-18 13:48:02 -04:00
Johannes Hoppe 01a294f8f0 Refs #14370 -- Vendored Select2 4.0.3 for use by the admin.
From https://github.com/select2/select2/releases/tag/4.0.3
2017-09-18 13:47:50 -04:00
elky dc37e8846e Fixed #26818 -- Added responsive CSS for the admin. 2017-09-16 19:11:19 -04:00
Sergey Fedoseev 873858009c Simplified Count.convert_value() and RegrCount.convert_value(). 2017-09-16 14:31:51 +05:00
Igor Gumenyuk 86a18dc46a Fixed #28334 -- Added caching for hstore/citext OIDs. 2017-09-15 10:00:12 -04:00
Mariusz Felisiak 0ec0e5029c Removed unnecessary parens in various code. 2017-09-13 21:20:29 -04:00
Mariusz Felisiak 0214f367bc Merged isinstance() calls. 2017-09-13 15:00:45 -04:00
Sergey Fedoseev c2ecef869c Refs #28569 -- Fixed gis_tests.inspectapp.tests.OGRInspectTest.test_time_field. 2017-09-12 22:19:44 +05:00
Tim Graham 2a4b331348 Moved contrib.gis.geometry.regex to contrib.gis.geometry. 2017-09-12 09:51:02 -04:00
Tim Graham f896eb30f6 Removed django.contrib.gis.geometry.backend.
The layer of indirection is unchanged and undocumented
since its introduction in ff60c5f9de.
2017-09-12 09:51:02 -04:00
Sergey Fedoseev f36e5d68d9 Used sqlite3.Connection.load_extension() instead of query execution for SpatiaLite loading. 2017-09-12 09:35:33 -04:00
Sergey Fedoseev bd903e8a6e Fixed #28570 -- Dropped support for GEOS 3.3.x.
Removed setting SRID in GEOSGeometry.clone() which was only required
in GEOS 3.3.0.
2017-09-11 13:57:24 -04:00
Simon Charette 08654a99bb Fixed #28492 -- Defined default output_field of expressions at the class level.
This wasn't possible when settings were accessed during Field initialization
time as our test suite setup script was triggering imports of expressions
before settings were configured.
2017-09-11 12:22:39 -04:00
Sergey Fedoseev 3905cfa1a5 Fixed #28353 -- Fixed some GIS functions when queryset is evaluated more than once.
Reverted test for refs #27603 in favor of using FuncTestMixin.
2017-09-11 11:56:39 -04:00
Sergey Fedoseev a0b4ecce57 Fixed #28392 -- Fixed GIS's WKT regex to match large scientific notation numbers.
Thanks Greg Larmore for report and initial patch.
2017-09-11 09:13:02 -04:00
Claude Paroz a599ae6018 Refs #24928 -- Added introspection support for PostgreSQL RangeField 2017-09-09 20:22:47 +02:00
Claude Paroz 0cbb6ac007 Refs #24928 -- Added introspection support for PostgreSQL JSONField
Thanks Adam Johnson and Tim Graham for the reviews.
2017-09-09 18:26:29 +02:00
Sergey Fedoseev 8b5a29800c Fixed #25961 -- Removed handling of non-thread safe GEOS functions. 2017-09-09 10:14:48 -04:00
Sergey Fedoseev 0ab1dc0a8b Fixed deepcopy of AreaField and DistanceField. 2017-09-08 14:13:50 -04:00
Sergey Fedoseev ff17ef1ada Simplified GEOSFuncFactory. 2017-09-08 10:38:30 -04:00
Tim Graham 6e4c6281db Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."
This reverts commit 550cb3a365
because try/except performs better.
2017-09-07 08:16:21 -04:00
Sergey Fedoseev 8b2515a450 Removed unneeded __init__() methods. 2017-09-07 08:10:49 -04:00
Sergey Fedoseev 34f27f910b Replaced @cached_property with class attributes where possible. 2017-09-06 10:13:43 -04:00
Sergey Fedoseev a8ad1e3216 Replaced get_pointer_arr() with usage of GEOM_PTR for simplicity. 2017-09-06 08:06:36 -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
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
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
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
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
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
Sergey Fedoseev 44ce308281 Simplified contrib.gis.geos.prototypes by replacing c_char with c_byte. 2017-08-29 14:50:24 -04:00
Claude Paroz afc06b5625 Fixed #28536 -- Removed old JS cross-browser utilities 2017-08-28 20:31:09 +02:00
Claude Paroz 8275662a24 Removed lone usage of jQuery in admin's calendar.js 2017-08-26 18:00:44 +02:00
Mads Jensen e016c4c65b Refs #27869 -- Omitted field kwargs from GinIndex.deconstruct() if they're None. 2017-08-26 10:32:03 -04:00
Mads Jensen fb42d02471 Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None. 2017-08-26 09:45:45 -04:00
Sergey Fedoseev 1a85b07bdd Fixed #28518 -- Improved performance of loading geometries from DB. 2017-08-24 14:08:35 -04:00
hui shang c0f4c60edd Fixed #28513 -- Added POST request support to LogoutView. 2017-08-24 09:11:16 -04:00
Fabian Schindler da0fb5b1ec Fixed #28380 -- Excluded null geometries in SpatiaLite geometry lookups. 2017-08-24 08:30:11 -04:00
Claude Paroz 09b3e46635 Fixed #27796 -- Prevented middleware being loaded twice with runserver
Thanks Tim Graham for the review.
2017-08-23 23:05:18 +02:00
Sergey Fedoseev f2b93b509c Removed unneeded iter() calls.
A few of these were unnecessarily added in 2b281cc35e.
2017-08-23 16:48:29 -04:00
Sergey Fedoseev 4302167939 Used frozenset instead of dict for GeoIP2.cache_options for simplicity. 2017-08-23 11:47:47 -04:00
Sergey Fedoseev fac74b84a3 Used OrderedDict.fromkeys() to initialize OrderedDict with None values. 2017-08-23 11:40:17 -04:00
Nick Pope 796fde5b79 Fixed incorrect indentation in remove_stale_contenttypes.
It's unnecessary for content_type_display to be constructed from
ct_info in every loop iteration.
2017-08-22 09:10:42 -04:00
Simon Meers 7bba82453c Fixed #28496 -- Added ModelAdmin.get_changelist_instance(). 2017-08-22 08:17:26 -04:00
Claude Paroz 546412e673 Fixed #28495 -- Converted GDAL Feature.fields to strings 2017-08-15 19:31:22 +02:00