Commit Graph

8600 Commits

Author SHA1 Message Date
Manatsawin Hanmongkolchai 110bd82038 [1.11.x] Fixed #28242 -- Moved ImageField file extension validation to the form field.
Backport of a0c07d77fc from master
2017-06-01 10:44:47 -04:00
Tim Graham af9a81aa7f [1.11.x] Fixed a forms test after updated translations.
Backport of 84fb50df67 from master
2017-05-31 19:33:26 -04:00
Derrick Jackson 7250393f31 [1.11.x] Fixed #28170 -- Fixed file_move_safe() crash when moving files to a CIFS mount.
Backport of 789c290150 from master
2017-05-31 15:02:32 -04:00
Robert Rollins 877d7b71ae [1.11.x] Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses. 2017-05-30 18:06:58 -04:00
Tim Graham 48274c1589 [1.11.x] Fixed AppRegistryNotReady error when running gis_tests in isolation on PostGIS.
Regression in 890537253c.

Backport of 4a251f8bce from master
2017-05-30 15:14:55 -04:00
Adit Biswas 4e675999d5 [1.11.x] Fixed #28209 -- Made date-based generic views return a 404 rather than crash when given an out of range date.
Backport of c2eea61dff from master
2017-05-30 13:32:20 -04:00
Mariusz Felisiak 5688562f66 [1.11.x] Fixed gis_tests.geoapp test with incorrect geodetic coordinates.
The latitude coordinates exceed -90, 90 bounds and caused a test failure
on Oracle 12.2.

Thanks Michał Wierzbowski for help preparing the patch.

Backport of 037d6540ec from master
2017-05-30 08:23:05 -04:00
Tim Graham 9b9a81024a [1.11.x] Fixed #28199 -- Fixed Subquery generating unnecessary/invalid CAST.
Thanks Simon Charette for the fix.

Backport of f04495521a from master
2017-05-30 06:41:50 -04:00
Tim Graham c341803315 [1.11.x] Fixed #28204 -- Fixed MultipleObjectMixin.paginate_queryset() crash on Python 2 if InvalidPage message contains non-ASCII. 2017-05-29 09:51:16 -04:00
Alex b9abdd92ab [1.11.x] Fixed #28222 -- Allowed settable properties in QuerySet.update_or_create()/get_or_create() defaults.
Backport of 37ab3c3f9d from master
2017-05-27 13:01:38 -04:00
vinay karanam d1d08d86ba [1.11.x] Fixed #28230 -- Allowed DjangoJsonEncoder to serialize CallableBool. 2017-05-22 21:58:38 -04:00
Daniel Hahler a810f4aa04 [1.11.x] Refs #28207 -- Fixed contrib.auth.authenticate() if 'backend' is in the credentials.
Regression in 3008f30f19.

Backport of a3ba2662cd from master
2017-05-22 13:00:44 -04:00
Tim Graham f2b8fa1763 [1.11.x] Fixed #28210 -- Fixed Model._state.adding on MTI parent model after saving child model.
Regression in 38575b007a.

Backport of 59ab1b2683 from master
2017-05-19 21:09:42 -04:00
Tim Schneider 566726ff96 [1.11.x] Fixed #28197 -- Fixed introspection of index field ordering on PostgreSQL.
Backport of 3a5299c19c from master
2017-05-15 08:59:02 -04:00
Tamas Szabo d945b7e42a [1.11.x] Fixed #28207 -- Fixed contrib.auth.authenticate() if multiple auth backends don't accept a request.
Backport of 3008f30f19 from master
2017-05-15 08:15:18 -04:00
Tim Graham 74b0837bef [1.11.x] Fixed #28188 -- Fixed crash when pickling model fields.
Regression in d2a26c1a90.

Thanks Adam Alton for the report and test, and Adam Johnson for
suggesting the fix.

Backport of a9874d48b1 from master
2017-05-11 21:05:05 -04:00
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