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