Commit Graph

8584 Commits

Author SHA1 Message Date
Florian Apolloner cf81add997 [1.11.x] Fixed db backend discovery in admin_scripts tests.
Not all backends have dots in them.

Backport of 60f5129076 from master
2017-05-10 09:52:26 -04:00
UmanShahzad 03d0c05fdf [1.11.x] Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.
Backport of 856072dd4a from master
2017-05-10 09:43:12 -04:00
Tim Graham 4841fafb44 [1.11.x] Refs #28160 -- Skipped a GeoManager test if not using a GIS database backend.
The test errors if GDAL isn't installed.
2017-05-09 10:04:58 -04:00
Markus Holtermann 38e1169067
[1.11.x] Refs #22397 -- Removed model in test cleanup
The test was failing when using --keepdb due to a pre-existing
PonyStables model.

Thanks Florian Apolloner for the report

Backport of 8e352876c3 from master.
2017-05-09 13:11:05 +02:00
François Freitag 6a2624286b [1.11.x] Fixed #28062 -- Added a setting to disable server-side cursors on PostgreSQL.
When a connection pooler is set up in transaction pooling mode, queries
relying on server-side cursors fail. The DISABLE_SERVER_SIDE_CURSORS
setting in DATABASES disables server-side cursors for this use case.

Backport of 88336fdbb5 from master
2017-05-06 07:45:46 -04:00
Tim Graham f9a4593376 [1.11.x] Fixed #28175 -- Fixed __in lookups on a foreign key when using the foreign key's parent model as the lookup value.
Thanks Simon Charette for review.

Backport of d66378a8b2 from master
2017-05-05 18:36:09 -04:00
Tim Graham 68ebc240a4 [1.11.x] Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed.
Backport of 2dc3280254 from master
2017-05-04 21:14:23 -04:00
Tim Graham 444cdf6131 [1.11.x] Made runtests.py run gis_tests only when using a GIS database backend.
This facilitates other changes like refs #28160.

Backport of 890537253c from master
2017-05-04 20:54:25 -04:00
François Freitag c679ac0449 [1.11.x] Fixed #27554 -- Fixed prefetch_related() crash when fetching relations in nested Prefetches.
Backport of c0a2b9508a from master
2017-05-04 09:55:35 -04:00
Simon Charette 246166cfe4 [1.11.x] Fixed #28161 -- Fixed return type of ArrayField(CITextField()).
Thanks Tim for the review.

Backport of b91868507a from master.
2017-05-04 00:23:49 -04:00
Tim Graham f3217ab596 [1.11.x] Fixed #28166 -- Fixed Model._state.db on MTI parent model after saving child model.
Regression in 38575b007a.

Backport of 584e10c76e from master
2017-05-03 12:31:18 -04:00
Alexander Kavanaugh 008ba77dfd [1.11.x] Fixed #28159 -- Fixed BaseInlineFormSet._construct_form() crash when using save_as_new.
Regression in 4a246a02bd.

Backport of 362fba87c9 from master
2017-05-03 08:59:41 -04:00
Tim Graham 0615601498 [1.11.x] Fixed #28157 -- Fixed choice ordering in form fields with grouped and non-grouped options.
Regression in b52c73008a.

Backport of d302e2c09c from master
2017-05-03 07:22:00 -04:00
Tim Graham 4c12b10263 [1.11.x] Refs #28052 -- Cleaned up some indexes in schema tests.
Backport of d0e43f225f from master
2017-05-01 22:22:58 -04:00
Markus Holtermann 6afede8219 [1.11.x] Fixed #28052 -- Prevented dropping Meta.indexes when changing db_index to False.
Thanks Marc Tamlyn for the report and Ian Foote/Tim Graham for review.

Backport of 663e48947f from master
2017-05-01 12:22:29 -04:00
Ian Foote 211d2bf3f2 [1.11.x] Fixed #28043 -- Prevented AddIndex and RemoveIndex from mutating model state.
Backport of 63afe3a2bf from master
2017-05-01 10:08:50 -04:00
Dylan Verheul b1aea89dee [1.11.x] Fixed #28105 -- Fixed crash in BaseGeometryWidget.get_context() when overriding existing attrs.
Backport of 75aeebebfe from master
2017-04-30 21:13:50 -04:00
Tim Graham a2975cb083 [1.11.x] Fixed #28040 -- Updated SplitArrayWidget to use template-based widget rendering.
Thanks Preston Timmons for review.

Backport of 1ebd295082 from master
2017-04-29 22:24:29 -04:00
Tim Graham e93135b067 [1.11.x] Fixed #28130 -- Fixed formset min_num validation with initial, unchanged forms.
Regression in f5c6295797.

Backport of f04a404917 from master
2017-04-28 09:32:52 -04:00
Tim Graham 4a89000ccf [1.11.x] Fixed #28122 -- Fixed crash when overriding views.static.directory_index()'s template.
Backport of 56970c5b61 from master
2017-04-25 11:01:34 -04:00
Michiel Beijen 7eecf496ee [1.11.x] Renamed "Mac OS X" to "macOS" in docs.
Backport of 5e8625ba64 from master
2017-04-24 20:51:55 -04:00
Tim Graham 6cbfaba178 [1.11.x] Removed obsolete Widget.format_output() in tests.
Obsolete since b52c73008a.

Backport of 851874fe0a from master
2017-04-24 13:42:00 -04:00
Simon Charette 0ad1693494 [1.11.x] Fixed #28101 -- Fixed a regression with nested __in subquery lookups and to_field.
Thanks Kristian Klette for the report and Tim for the help.

Backport of 8ef35468b6 from master
2017-04-23 01:16:04 -04:00
Simon Charette 395df007f4 [1.11.x] Fixed #28109 -- Corrected the stack level of unordered queryset pagination warnings.
Refs #26290.

Thanks Tim for the review.

Backport of c0f12a098c from master
2017-04-22 14:10:49 -04:00
Jon Dufresne 1442e29983 [1.11.x] Fixed #28075 -- Prevented ChoiceWidget from localizing option values.
Backport of 581879a510 from master
2017-04-21 12:29:20 -04:00
François Freitag 56746fb21f [1.11.x] Fixed #28091 -- Re-raised original exception when closing cursor cleanup fails 2017-04-20 17:43:39 +02:00
Tim Graham 5e2bbcd70c [1.11.x] Fixed #28039 -- Fixed crash in BaseGeometryWidget.subwidgets().
Backport of d2cb7a2bc1 from master
2017-04-20 11:40:20 -04:00
Tim Graham 2f358d32ec [1.11.x] Fixed #28059 -- Restored class attribute in <ul> of widgets that use multiple_input.html.
Regression in b52c73008a

Backport of af1f986360 from master
2017-04-20 11:07:54 -04:00
Claude Paroz 61e883c7c2 [1.11.x] Fixed #28096 -- Allowed prefetch calls with ModelIterable subclasses
Regression in 7ec330eeb9.
Thanks Tim Graham for the review.
Backport of 43b4a1618e from master.
2017-04-19 19:37:13 +02:00
Tim Graham cf1e682c8c [1.11.x] Fixed #28097 -- Fixed layout of ReadOnlyPasswordHashWidget.
Backport of dff559ff83 from master
2017-04-19 12:59:53 -04:00
Tim Graham d6524088a8 [1.11.x] Refs #28066 -- Fixed Python 2 failures in sessions_tests. 2017-04-19 07:45:47 -04:00
Mariusz Felisiak 3173d9a850 [1.11.x] Refs #28066 -- Fixed nondeterministic ordering test failure in sessions_tests.
Thanks Tim Graham for the review.

Backport of 81f8449402 from master
2017-04-18 18:01:52 +02:00
InvalidInterrupt 5d556d2aaf [1.11.x] Fixed #28066 -- Prevented SessionBase.cycle_key() from discarding data.
Backport of dda596ca32 from master
2017-04-17 22:27:59 -04:00
Tim Graham 844ae40a7c [1.11.x] Fixed #28058 -- Restored empty BoundFields evaluating to True.
Regression in b52c73008a

Backport of c09bf8d767 from master
2017-04-17 08:56:15 -04:00
Tim Graham 91bbe7b1c1 [1.11.x] Fixed #28079 -- Restored "No POST data" (rather than an empty table) in HTML debug page.
Regression in 7b6dccc82f

Backport of 8c6a3062dd from master
2017-04-15 09:21:54 -04:00
Tim Graham 8a13cddc26 [1.11.x] Fixed #28047 -- Fixed QuerySet.filter() crash when it uses the name of a OneToOneField pk.
Regression in 1bc249c2a6.

Backport of fce7827101 from master
2017-04-10 11:52:10 -04:00
kalombo 734e6bb2b8 [1.11.x] Fixed #28042 -- Fixed crash when using a two-tuple in EmailMessage's attachments arg.
Backport of dd00184892 from master
2017-04-07 18:24:09 -04:00
kalombo a95eba7d98 [1.11.x] Tested EmailMessage(attachments=[MIMEText])
Backport of aedfe0ddd7 from master
2017-04-07 18:24:09 -04:00
Simon Charette 5d35e8eb06 [1.11.x] Fixed #28038 -- Restored casting to text of builtin lookups on PostgreSQL.
Reverted 658f1e8 which broke code using __icontains's implicit cast to ::text
on ArrayField.

Thanks Peter J. Farrell for the report.

Backport of a354c69055 from master
2017-04-07 16:51:07 -04:00
Markus Holtermann f9d2a20d7b [1.11.x] Fixed #28051 -- Made migrations respect Index's name argument.
Thanks Marc Tamlyn for the report and Tim Graham for the review.

Backport of d3cf75ec6f from master
2017-04-07 11:48:25 -04:00
Tim Graham 97e77b7bc1 [1.11.x] Fixed #27912, CVE-2017-7233 -- Fixed is_safe_url() with numeric URLs.
This is a security fix.
2017-04-04 10:46:50 -04:00
Tim Graham 001ff50808 [1.11.x] Fixed CVE-2017-7234 -- Fixed open redirect vulnerability in views.static.serve().
This is a security fix.
2017-04-04 10:46:50 -04:00
Claude Paroz 427f09ce5e [1.11.x] Updated tests after French translation update
Backport of 389c3ffc04 from master.
2017-04-04 13:09:15 +02:00
Tim Graham 7f5be2dc84 [1.11.x] Fixed flake8 warning on Python 2. 2017-04-03 22:33:46 -04:00
kapil garg 76b51656e6 [1.11.x] Fixed #27974 -- Kept resolved templates constant during one rendering cycle.
Thanks Florian Apolloner for the initial patch.

Backport of 002fe07622 from master
2017-04-03 22:32:41 -04:00
Tim Graham e34cce79ff [1.11.x] Refs #27025 -- Fixed "invalid escape sequence" warning in auth_tests on Python 3.6.
Backport of d4d79d0f20 from master
2017-04-02 20:03:36 -04:00
Claude Paroz 06d32f689e [1.11.x] Fixed #27866 -- Made ChoiceWidget.format_value() return a list
Thanks Tim Graham for the review.
Backport of e487ffd3f0 from master.
2017-04-01 12:26:49 +02:00
heathervm ff0c6b83e5 [1.11.x] Fixed #27993 -- Fixed model form default fallback for SelectMultiple.
Backport of 7d1e237753 from master
2017-03-31 10:10:30 -04:00
Sergey Fedoseev 8484cf4cd0 [1.11.x] Refs #18247 -- Fixed SQLite QuerySet filtering on decimal result of Least and Greatest.
Backport of 068d75688f from master
2017-03-30 08:47:16 -04:00
Tim Graham 8cc2f5aed1 [1.11.x] Fixed #27956 -- Fixed display of errors in an {% extends %} child.
Thanks Ling-Xiao Yang for the report and test, and
Preston Timmons for the fix.

Backport of e643ba8bcf from master
2017-03-25 08:22:31 -04:00