Tim Graham
6e40b70bf4
Refs #26929 -- Removed extra_context parameter of contrib.auth.views.logout_then_login().
...
Per deprecation timeline.
2017-09-22 12:51:17 -04:00
Tim Graham
4f313e284e
Refs #17209 -- Removed login/logout and password reset/change function-based views.
...
Per deprecation timeline.
2017-09-22 12:51:17 -04:00
Nicolas Delaby
01d440fa1e
Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) support.
...
Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-22 11:53:17 -04:00
Niall Dalton
4fe6588da3
Fixed #28576 -- Added color interpretation method to GDALBand.
2017-09-21 09:42:38 -04:00
Thomas Schorr
52eb5b289e
Fixed #28617 -- Made ogrinspect output pep8 compliant.
2017-09-20 21:03:14 -04:00
Sjoerd Job Postmus
df41b5a05d
Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.
...
Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-20 18:04:42 -04:00
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
Tom
b78d100fa6
Fixed #27849 -- Added filtering support to aggregates.
2017-08-12 17:58:28 -04:00
Paulo
bfb746f983
Refs #16043 -- Refactored internal fields value cache.
...
* Removed all hardcoded logic for _{fieldname}_cache.
* Added an internal API for interacting with the field values cache.
Thanks carljm and MarkusH for support.
2017-08-10 12:06:02 -04:00
Claude Paroz
831358f23d
Fixed #28465 -- Unified index SQL creation in DatabaseSchemaEditor
...
Thanks Tim Graham for the review.
2017-08-08 17:37:43 +02:00
bc500
09423db71a
Fixed #28472 -- Optimized a jQuery selector in admin's actions.js.
2017-08-08 08:35:57 -04:00
Mariusz Felisiak
7724879b52
Removed unused _combine() node argument from various combinable classes.
...
Unused since f59fd15c49
(Combinable) and
since its introduction in 2d877da855
(SearchVectorCombinable/SearchQueryCombinable/SearchQuery).
2017-08-02 21:21:32 -04:00
Tim Graham
78c155cf2e
Fixed #28441 -- Fixed GEOS version parsing with a commit hash at the end.
2017-08-02 09:30:30 -04:00
Tim Graham
8df7681d0e
Removed unneeded escape filter in templates where autoescaping is enabled.
2017-08-01 10:52:29 -04:00
Sergey Fedoseev
38988f289f
Avoided creation of temporary sets.
2017-07-29 10:16:43 -04:00
Sergey Fedoseev
6ebe3a95ea
Fixed #28437 -- Added support for complex geometry expressions in GIS lookups.
2017-07-27 08:06:08 -04:00
Tim Graham
ef9344b3a5
Removed unused SpatialOperations.from_wkb.
...
Unused since its introduction in ff60c5f9de
.
2017-07-26 20:03:41 -04:00
Sergey Fedoseev
5ccbcc5bf6
Fixed #28433 -- Made GEOSGeometry.__eq__() work correctly with non-canonical EWKT string.
2017-07-26 09:42:02 -04:00
Sergey Fedoseev
f3bada9889
Fixed #28436 -- Added support for distance lookups on MySQL.
2017-07-26 08:50:56 -04:00
Sergey Fedoseev
38af496b98
Fixed #28432 -- Allowed geometry expressions to be used with distance lookups.
...
Distance lookups use the Distance function for decreased code redundancy.
2017-07-25 15:49:35 -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
Tom Forbes
462f1589cd
Refs #23919 -- Updated contrib.admin's compress.py to use pathlib.
2017-07-21 10:24:49 -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
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
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
Sergey Fedoseev
59cad72636
Simplified GEOSCoordSeq._checkindex().
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
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
306b961a4d
Fixed #28383 -- Made NumPoints GIS function return None for non-LINESTRING geometries on MySQL.
2017-07-11 08:21:11 -04:00
Claude Paroz
61fd2b494a
Refs #21415 -- Fixed contrib.humanize translations for es_AR
...
Thanks Blas Castro for the report and the patch.
Forward port of 72026fff39
from stable/1.11.x
2017-07-05 08:41:09 +02:00
Sergey Fedoseev
2d18c60fbb
Removed unused prototypes for deprecated GEOS functions.
2017-06-29 14:40:21 -04:00
Mads Jensen
550cb3a365
Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().
2017-06-28 14:07:55 -04:00
Mariusz Felisiak
617505ca89
Fixed #28330 -- Prevented passing positional arguments to an Index.
...
Thanks Tim Graham for the review.
2017-06-27 13:39:37 -04:00
michaldabski
d381914aef
Fixed #28313 -- Added model name max length check of 100 characters in contrib.contentttypes.
2017-06-26 18:12:35 -04:00
Sergey Fedoseev
44a7b98abb
Fixed #27964 -- Made MySQL backend raise exception if spatial transformation is needed for query.
2017-06-26 15:10:55 -04:00
Andrew Pinkham
a96b981d84
Fixed #28127 -- Allowed UserCreationForm's password validation to check all user fields.
2017-06-21 09:22:15 -04:00
Mads Jensen
de42adf4ff
Fixed #27869 -- Added fastupdate and gin_pending_list_limit params to GinIndex.
...
Thanks Tim Graham and Markus Holtermann for review.
2017-06-20 10:54:39 -04:00
Tim Graham
d1d7348001
Refs #25809 -- Removed BrinIndex.__repr__().
...
In retrospect, implementing a __repr__() for index subclasses doesn't
seem worthwhile.
2017-06-17 18:41:53 -04:00
Chandrakant Kumar
2b09e4c88e
Fixed #27787 -- Made call_command() validate the options it receives.
2017-06-16 21:28:38 -04:00
Daniel Wiesmann
6f44f714c9
Fixed #28300 -- Allowed GDALRasters to use the vsimem filesystem.
...
Thanks Tim Graham for the review and edits.
2017-06-16 12:09:05 -04:00