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
Pavel Rybintsev
874b1f2cac
Fixed #26936 -- Fixed stale ContentType deletion in apps without models.
2017-06-16 09:22:47 -04:00
Lincoln Smith
15b465c584
Fixed #27998 -- Made ManyToManyField changes logged in admin's object history.
2017-06-14 13:07:06 -04:00
Romulo Furtado
9dd2443942
Fixed #27161 -- Fixed form validation when an ArrayField's base_field has choices.
2017-06-13 19:44:24 -04:00
Mariusz Felisiak
de9294727c
Added tel input type to admin CSS.
2017-06-13 16:49:57 -04:00
monotonee
7c4f05fae2
Fixed #28295 -- Made admin's URLify.js trim trailing hyphens.
2017-06-13 14:58:30 -04:00
chillaranand
08bda82c23
Fixed #27830 -- Used distutils.version.LooseVersion for version parsing.
2017-06-13 10:53:39 -04:00
Mikhail Golubev
e7dc39fb65
Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
2017-06-13 09:13:22 -04:00
Paulo
9dc83c356d
Fixed #27967 -- Fixed KeyError in admin's inline form with inherited non-editable pk.
...
Thanks Robin Anupol for the initial report and workaround.
2017-06-12 21:12:54 -04:00
Tom
3eb3907bb1
Refs #23919 -- Replaced stray super(ClassName, self) with super().
2017-06-10 20:46:43 -04:00
Daniel Wiesmann
fe5e34a295
Fixed #28288 -- Allowed passing papsz options to GDALRaster initialization.
2017-06-08 12:44:26 -04:00
Tim Graham
c16aa69101
Factored shared Inline/ModelAdmin.get_fields() logic into BaseModelAdmin.
...
BaseModelAdmin.get_fields() was previously unused/untested.
2017-06-07 17:11:02 -04:00
Claude Paroz
2862760894
Fixed #28257 -- Confirmed support for GDAL 2.2
...
Additionally, a test has been updated to account for small SRS WKT differences.
Thanks Tim Graham for writing the doc part.
2017-06-07 21:26:04 +02:00
Daniel Wiesmann
e0b456bee7
Fixed #28232 -- Made raster metadata readable and writable on GDALRaster/Band.
2017-06-07 11:30:35 -04:00
kakulukia
525dc283a6
Fixed #28278 -- Fixed invalid HTML for a required AdminFileWidget.
2017-06-06 15:41:23 -04:00
Paulo
4ad2f86284
Fixed #28202 -- Fixed FieldListFilter.get_queryset() crash on invalid input.
2017-06-06 07:54:31 -04:00
Tim Graham
5a52d932ef
Replaced Model._get_pk_val() with pk property.
...
Model.pk was added after _get_pk_val() and many places weren't simplified.
2017-06-05 15:20:34 -04:00
Paulo
b7f99f84bc
Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
2017-06-05 10:29:54 -04:00
Tim Graham
07a9771b36
Removed unused django.contrib.gis.shortcuts.render_to_text()
...
Unused since its introduction in 79e68c225b
.
2017-06-03 13:15:26 -04:00
Claude Paroz
43b574007e
Fixed #28192 -- Required passing optional form field args as keyword args.
2017-06-03 10:49:01 -04:00
Tim Graham
37520d284e
Removed useless hasattr() checks in ModelAdmin checks.
...
These attributes are defined on BaseModelAdmin and thus should always
be there.
2017-06-02 15:27:15 -04:00
Jon Dufresne
2c69824e5a
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
2017-06-01 19:08:59 -04:00
Tim Graham
cde31daf88
Sorted imports per isort 4.2.9.
2017-06-01 13:23:48 -04:00
Claude Paroz
ae2ac4c400
Updated translations from Transifex
...
Forward port of 02158a785e
from stable/1.11.x
2017-05-31 21:43:40 +02:00
Tim Graham
c32476e5ba
Refs #28181 -- Corrected detection of GDAL 2.1 on Windows.
...
Follow up to a404f75f92
.
2017-05-30 09:39:59 -04:00
Adam Johnson
9509268cea
Refs #23804 -- Improved value validation in GDALRaster.geotransform setter.
2017-05-30 09:02:50 -04:00
Linus Lewandowski
eedc88bd4a
Fixed #26823 -- Prevented update_last_login signal receiver from crashing if User model doesn't have last_login field.
2017-05-29 17:31:18 -04:00
Nick Zaccardi
95993a89ce
Fixed #28248 -- Fixed password reset tokens being valid for 1 day longer than PASSWORD_RESET_TIMEOUT_DAYS.
2017-05-29 09:22:22 -04:00
Boris Burkov
8c45b5b903
Added comments to contrib.sitemaps.index() view.
2017-05-27 20:50:35 -04:00
Jon Dufresne
21046e7773
Fixed #28249 -- Removed unnecessary dict.keys() calls.
...
iter(dict) is equivalent to iter(dict.keys()).
2017-05-27 19:08:46 -04:00
Tom
7afb476469
Fixed #28226 -- Replaced use of str.join() with concatenation.
2017-05-27 13:59:05 -04:00
Anton Samarchyan
385cf7091e
Fixed #25006 -- Allowed custom time shortcuts in admin's time picker.
2017-05-27 10:50:18 -04:00
jannh
c930c241f8
Fixed #28017 -- Allowed customizing PasswordResetTokenGenerator's secret.
2017-05-26 07:37:36 -04:00
Yuichi Fujikawa
f8bce94997
Fixed docstring typo in django/contrib/admin/actions.py.
2017-05-25 05:54:51 -04:00
R3turnz
502f03d897
Fixed #28112 -- Added 'time_zone' in GeoIP2.city() dict.
2017-05-22 21:07:14 -04:00
Daniel Hahler
a3ba2662cd
Refs #28207 -- Fixed contrib.auth.authenticate() if 'backend' is in the credentials.
...
Regression in 3008f30f19
.
2017-05-22 12:24:38 -04:00
Tom
e9c7f118a7
Fixed #28227 -- Allowed importing BaseRangeField/RangeWidget from contrib.postgres.forms.
2017-05-20 21:17:06 -04:00
Jon Dufresne
f599747fc8
Fixed #28152 -- Made migrations serialize sets as set literals rather than set().
2017-05-18 09:33:40 -04:00
Tamas Szabo
3008f30f19
Fixed #28207 -- Fixed contrib.auth.authenticate() if multiple auth backends don't accept a request.
2017-05-15 07:48:15 -04:00
Danilo Bargen
a7975260b5
Fixed #28195 -- Added OSMWidget.default_zoom attribute.
2017-05-14 14:31:17 -04:00
Claude Paroz
f87256b15e
Refs #27795 -- Replaced force_text() with str() in contrib.messages
...
Thanks Tim Graham for the review.
2017-05-10 22:40:18 +02:00
Tim Graham
c2975910a5
Fixed #28178 -- Changed contrib.gis to raise ImproperlyConfigured if gdal isn't installed.
2017-05-08 11:07:00 -04:00
Tim Graham
a404f75f92
Fixed #28181 -- Added detection for GDAL 2.1 and 2.0.
...
Follow up to:
ffdf507ec0
(adding GDAL 2.0 support)
ebaa2fef27
(confirming GDAL 2.1 support)
8c7778884b
(removing GDAL 1.8, 1.7 support)
2017-05-08 10:59:16 -04:00
Josh Schneier
5df0ff4155
Fixed #28089 -- Removed requirement to implement get_short_name() and get_full_name() in AbstractBaseUser subclasses.
2017-05-06 17:05:42 -04:00
Claude Paroz
e7f75b0b14
Fixed #28085 -- Added missing plural forms in en translation catalogs
2017-05-05 21:25:37 +02:00
Tim Graham
b014de011b
Removed obsolete HAS_GEOS variable for test skipping.
2017-05-04 20:45:18 -04:00
Tim Graham
2dc3280254
Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
2017-05-04 20:45:18 -04:00
Simon Charette
b91868507a
Fixed #28161 -- Fixed return type of ArrayField(CITextField()).
...
Thanks Tim for the review.
2017-05-04 00:02:14 -04:00
Tim Graham
578e576c31
Fixed #28167 -- Fixed cache backend's SessionStore.exists() if session_key is None.
2017-05-03 12:39:07 -04:00
Dylan Verheul
75aeebebfe
Fixed #28105 -- Fixed crash in BaseGeometryWidget.get_context() when overriding existing attrs.
2017-04-30 20:19:12 -04:00
Tim Graham
1ebd295082
Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
...
Thanks Preston Timmons for review.
2017-04-29 19:00:21 -04:00
Claude Paroz
301de774c2
Refs #27795 -- Replaced many force_text() with str()
...
Thanks Tim Graham for the review.
2017-04-27 09:10:02 +02:00
Jon Dufresne
92bc727271
Replaced temporary lists used for passing arguments with iterables.
2017-04-26 10:54:20 -04:00
Jon Dufresne
8bf96c109f
Replaced unneeded *arguments with positional arguments.
2017-04-26 09:39:24 -04:00
Paolo Melchiorre
fcb5dbfec0
Fixed #27996 -- Added RandomUUID function and CryptoExtension to contrib.postgres.
2017-04-25 20:21:36 -04:00
Claude Paroz
3f1ba76851
Fixed #28115 -- Fixed IP address validation in geoip2 module
...
Regression in 277a4dd4b4
.
Thanks Tim Graham for the test.
2017-04-22 20:10:24 +02:00
Claude Paroz
257075d4ad
Refs #28115 -- Avoided masking legitimate ImportErrors in geoip2 module
2017-04-22 20:10:24 +02:00
Claude Paroz
c52ae33a0c
Fixed #28100 -- Removed link in UserChangeForm.password's translatable help_text
2017-04-22 15:39:15 +02:00
Tim Graham
d2cb7a2bc1
Fixed #28039 -- Fixed crash in BaseGeometryWidget.subwidgets().
2017-04-20 11:36:40 -04:00
Tim Graham
dff559ff83
Fixed #28097 -- Fixed layout of ReadOnlyPasswordHashWidget.
2017-04-19 12:59:30 -04:00
InvalidInterrupt
dda596ca32
Fixed #28066 -- Prevented SessionBase.cycle_key() from discarding data.
2017-04-17 09:58:19 -04:00
Sergey Fedoseev
6d5bb6ae9e
Refs #28024 -- Optimized LineString.__init__() by avoiding superfluous index and dimension checks.
2017-04-13 11:30:26 +05:00
Sergey Fedoseev
ebaa08b3ae
Refs #28024 -- Optimized GEOSCoordSeq.__setitem__() by avoiding superfluous index and dimension checks.
2017-04-11 12:46:41 -04:00
Sergey Fedoseev
a296a43309
Refs #28024 -- Optimized GEOSCoordSeq.__getitem__() by avoiding superfluous index and dimension checks.
2017-04-11 12:46:41 -04:00
Sergey Fedoseev
d453dfb1da
Refs #28024 -- Optimized GEOSCoordSeq.tuple by avoiding superfluous index and dimension checks.
2017-04-11 12:46:41 -04:00
Sergey Fedoseev
e7afef13f5
Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to another one.
2017-04-10 13:26:26 -04:00
Sergey Fedoseev
df8f1d018f
Fixed #27972 -- Made BaseSpatialField.geodetic() use SpatialReference.geographic.
2017-04-07 12:45:52 -04:00
Sergey Fedoseev
e2bd2539b6
Made get_srid_info() cache use a namedtuple.
2017-04-07 12:24:38 -04:00
Sergey Fedoseev
24ae244a82
Removed connection agnostic SRID info cache from BaseSpatialField.
2017-04-07 12:24:38 -04:00
Sergey Fedoseev
08df3dd937
Removed more GeoQuerySet leftovers.
...
Follow up to a0d166306f
.
2017-04-07 07:38:56 -04:00
Sergey Fedoseev
fd892f3443
Fixed #28006 -- Allowed using D with lookups on Distance annotations.
2017-04-06 19:27:45 -04:00
Sergey Fedoseev
12d0567aa5
Fixed #28020 -- Made GEOSGeometry.json use OGRGeometry.json for better performance.
2017-04-05 09:03:24 -04:00
Claude Paroz
2dba812d86
Updated contrib translations from Transifex
...
Forward port of 290b2849f7
from stable/1.11.x
2017-04-04 12:39:02 +02:00
Sergey Fedoseev
ef8a339dfb
Removed Oracle NULL workaround in AreaField.
...
Unused since 1b1ea63f6a
.
2017-04-03 22:26:33 -04:00
Sergey Fedoseev
898e623db0
Fixed #27573 -- Made Distance on geodetic coordinates return a raw value on MySQL.
2017-04-02 17:06:01 -04:00
Sergey Fedoseev
5e710cf4a5
Fixed #11854 -- Added Azimuth GIS function. ( #8286 )
2017-04-02 14:24:06 -04:00
Jon Dufresne
7bbb5161ea
Removed implicit default store_true/false argparse args.
...
argparse automatically sets the default value for store_true/false
arguments to its opposite.
2017-04-01 20:03:56 -04:00
Sergey Fedoseev
24023c6a8f
Fixed #25874 -- Made GEOSGeometry read SRID from GeoJSON input.
2017-04-01 15:35:30 -04:00
Sergey Fedoseev
ede4f6d48c
Fixed #12410 -- Added LineLocatePoint GIS function.
2017-04-01 15:02:09 -04:00
Sergey Fedoseev
0a13b249e2
Fixed #26967 -- Added MySQL support for AsGeoJSON, GeoHash, IsValid functions, and isvalid lookup.
2017-04-01 13:43:53 -04:00
Sergey Fedoseev
bde86ce9ae
Fixed #25605 -- Made GIS DB functions accept geometric expressions, not only values, in all positions.
2017-04-01 09:47:49 -04:00
Adonys Alea Boffill
a0d29a9abe
Fixed #27942 -- Prevented admin from adding "add" buttons to all tables in inlines.
2017-03-30 10:39:59 -04:00
Tim Graham
1fa47dc45a
Updated minified admin JavaScript for the latest closure compiler.
2017-03-30 10:06:52 -04:00
Sergey Fedoseev
6ecccad711
Fixed #25873 -- Made GEOSGeometry handle the srid parameter more predictably.
2017-03-30 09:38:26 -04:00
Sergey Fedoseev
d5977e492e
Refs #25759 -- Fixed some GIS Funcs if different database backends are used.
2017-03-29 13:29:18 -04:00
Sergey Fedoseev
4bc355079c
Fixed #27973 -- Fixed GeoJSON representation of LinearRing and custom GEOSGeometry subclasses.
2017-03-29 13:17:31 -04:00
Sergey Fedoseev
9cd6ba991f
Made isvalid lookup use IsValid function to decrease code redundancy.
2017-03-29 08:56:58 -04:00
Sergey Fedoseev
d47de2e09d
Refs #27736 -- Used decorators for GIS lookup registration.
2017-03-27 22:20:18 -04:00
Mads Jensen
ed0cbc8d8b
Refs #23919 -- Removed some Python 2 compatibility code and comments.
2017-03-27 13:12:27 -04:00
Sergey Fedoseev
7fffe3acc2
Removed unused GISLookup._check_geo_field().
...
Unused since a0d166306f
.
2017-03-25 13:09:34 -04:00
Sergey Fedoseev
1b1ea63f6a
Fixed #27962 -- Allowed lookups on Area annotations.
2017-03-23 20:06:16 -04:00
Sergey Fedoseev
e9149d3eb0
Fixed #27603 -- Fixed AsKML when queryset is evaluated more than once.
2017-03-23 19:09:04 -04:00
Sergey Fedoseev
b00ee5471d
Simplified handling of expressions in StatAggregate.
2017-03-23 13:05:59 -04:00
Sergey Fedoseev
7063a85579
Fixed #27960 -- Set errcheck=False for GDALAllRegister to prevent crash.
...
GDALAllRegister returns void so errcheck is not needed.
2017-03-21 11:45:12 -04:00
Tim Graham
93d0770104
Refs #27919 -- Changed contrib widget's get_context() attrs kwarg to an arg.
...
Follow up to 075e93c16a
.
2017-03-21 10:15:34 -04:00
Sergey Fedoseev
08972528c2
Removed more GeoQuerySet leftovers.
...
Follow up to a0d166306f
.
2017-03-21 09:13:18 -04:00
Mariusz Felisiak
2867b7eb4b
Refs #27935 -- Fixed BrinIndex.max_name_length if a project's default database isn't PostgreSQL.
...
Thanks Florian Apolloner for the report.
2017-03-20 11:21:01 -04:00
Sergey Fedoseev
6cb0a3ac28
Removed BaseSpatialOperations.truncate_params.
...
Unused since 32969c3931
.
2017-03-20 07:59:23 -04:00
Mads Jensen
82bb4e684f
Fixed #27935 -- Fixed crash with BrinIndex name > 30 characters.
2017-03-18 08:12:10 -04:00
Tim Graham
93eca976c1
Fixed #27939 -- Updated OpenLayersWidget.map_srid for OpenLayers 3.
...
Regression in 2ebfda38e6
(refs #25004 ).
2017-03-17 12:03:06 -04:00
Tim Graham
b536dcf656
Fixed #27948 -- Removed incorrect unquote() in static serving views.
2017-03-17 07:55:00 -04:00
Sergey Fedoseev
875aebdb2c
Added SpatiaLite NumPoints support for non-LINESTRING geometries.
2017-03-16 20:29:31 -04:00
Tim Graham
5bd7ffc313
Updated postgis.net and gaia-gis.it links to https.
2017-03-16 14:01:45 -04:00
Sergey Fedoseev
1bf5e79394
Removed GeoQuerySet leftovers.
...
Follow up to a0d166306f
.
2017-03-16 09:38:02 -04:00
Josh Schneier
6bc4ff36db
Fixed #27897 -- Fixed crash with 'pk' in ModelAdmin.search_filters.
2017-03-15 13:45:18 -04:00
Claude Paroz
540ae68a5c
Fixed #27920 -- Restored empty RadioSelect choice producing value=""
...
Regression in b52c73008a
.
Thanks Tim Graham for the review.
2017-03-14 18:23:06 +01:00
Mariusz Felisiak
75503a823f
Fixed #27924 -- Added support for cx_Oracle 5.3.
...
- Fixed Oracle backend due to cx_Oracle 5.3 change in the
Cursor.description behavior i.e. "Use None instead of 0 for items in
the Cursor.description attribute that do not have any validity.".
- Used cx_Oracle.Object.size() instead of len().
Thanks Tim Graham for the review.
2017-03-10 23:02:44 +01:00
Camilo Nova
5db465d5a6
Fixed #27891 -- Added PasswordResetConfirmView.post_reset_login_backend.
2017-03-07 19:52:26 -05:00
Raphael Merx
2a3a0eb092
Fixed #27905 -- Added RelatedFieldWidgetWrapper.value_omitted_from_data().
2017-03-07 13:56:29 -05:00
Tim Graham
784a53beef
Reverted "Fixed #27878 , refs #23919 -- Used python3 shebangs."
...
This reverts commit 4cffa9a1ff
.
2017-03-07 10:10:32 -05:00
Anton Samarchyan
e88d2dfcf4
Fixed #27475 -- Fixed NonExistentTimeError crash in ModelAdmin.date_hierarchy.
2017-03-06 12:01:31 -05:00
Claude Paroz
8346680e1c
Refs #27795 -- Removed unneeded force_text calls
...
Thanks Tim Graham for the review.
2017-03-04 18:18:21 +01:00
Anton Samarchyan
86de930f41
Refs #27656 -- Updated remaining docstring verbs according to PEP 257.
2017-03-04 10:02:06 -05:00
David Szotten
d82ee32aac
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
2017-03-02 10:25:05 -05:00
Alexey Opalev
9f21e35100
Fixed #27842 -- Added protocol kwarg to GenericSitemap.__init__().
2017-02-28 11:48:07 -05:00
Asif Saifuddin Auvi
5f3a689f71
Imported django.http classes instead of django.http.
2017-02-27 14:47:11 -05:00
Tim Graham
c31e7ab5a4
Refs #25187 -- Fixed AuthBackend.authenticate() compatibility for signatures that accept a request kwarg.
2017-02-24 10:15:41 -05:00
Vytis Banaitis
3dcc351691
Refs #23919 -- Used yield from.
2017-02-23 20:06:01 -05:00
Chris Lamb
4cffa9a1ff
Fixed #27878 , refs #23919 -- Used python3 shebangs.
2017-02-23 13:41:10 -05:00
Anton Samarchyan
610876661e
Fixed typos in code comments.
2017-02-22 10:25:42 -05:00
Collin Anderson
fb7e0e01af
Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped widget.
2017-02-20 08:48:03 -05:00
Markus Holtermann
b9b35f9efa
Fixed #27840 -- Fixed KeyError in PasswordResetConfirmView.form_valid().
...
When a user is already logged in when submitting the password and
password confirmation to reset a password, a KeyError occurred while
removing the reset session token from the session.
Refs #17209
Thanks Quentin Marlats for the report and Florian Apolloner and Tim
Graham for the review.
2017-02-15 00:35:04 +01:00
Mads Jensen
fb5bd38e3b
Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.
2017-02-11 07:16:35 -05:00
Tim Graham
0166dd2f8c
Fixed #25524 -- Removed GISOperations.get_distance()'s handle_spheroid param.
2017-02-11 05:47:20 -05:00
Tim Graham
500532c95d
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
2017-02-09 09:03:47 -05:00
Anton Samarchyan
b27166b769
Fixed #27356 -- Fixed ModelAdmin.lookup_allowed() for some nested relations.
2017-02-07 19:33:26 -05:00