Tim Graham
81febf4def
[1.11.x] Fixed #28355 -- Fixed widget rendering of non-ASCII date/time formats on Python 2.
2017-07-06 07:41:57 -04:00
Jon Dufresne
8641489f4d
[1.11.x] Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__().
...
field_for_model() now has an additional keyword argument,
apply_limit_choices_to, allowing it to continue to be used to create
form fields dynamically after ModelForm.__init__() is called.
Thanks Tim Graham for the review.
Backport of a1be12fe19
from master
2017-06-30 21:28:47 -04:00
Simon Charette
c1621d8008
[1.11.x] Fixed #28350 -- Fixed UnboundLocalError crash in RenameField with nonexistent field.
...
Thanks Tim for the review.
Backport of 5cbcb36839
from master
2017-06-30 13:12:33 -04:00
Josh Schneier
7765d3ba9b
[1.11.x] Fixed #28298 -- Prevented a primary key alteration from adding a foreign key constraint if db_constraint=False.
...
Backport of fba0eaa5d6
from master
2017-06-22 21:54:46 -04:00
Mariusz Felisiak
d50e0e6553
[1.11.x] Simplified schema.tests with assertForeignKeyExists()/assertForeignKeyNotExists().
...
Backport of 663d1c3160
from master
2017-06-22 21:49:25 -04:00
Tim Graham
a3b1319d58
[1.11.x] Fixed #28176 -- Restored the uncasted option value in ChoiceWidget template context.
...
Backport of 221e6e1817
from master
2017-06-17 18:33:01 -04:00
Tim Graham
f0ec88fb63
[1.11.x] Fixed #28303 -- Prevented localization of attribute values in the DTL attrs.html widget template.
...
Backport of 3b050fd0d0
from master
2017-06-17 17:16:08 -04:00
Claude Paroz
49de4f1541
[1.11.x] Refs #24423 -- Readded inadvertently deleted i18n tests.
...
Mistake in 97c1931c4f
.
Backport of 357a6428980961b2c5311eb75d16229c7fc0d982 from master
2017-06-14 22:11:55 -04:00
Mikhail Golubev
16431b03f8
[1.11.x] Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
...
Backport of e7dc39fb65
from master
2017-06-13 09:19:11 -04:00
orf
f908e9d015
[1.11.x] Fixed #28284 -- Prevented Paginator's unordered object list warning from evaluating a QuerySet.
...
Backport of a118287bca
from master
2017-06-13 08:34:49 -04:00
Mariusz Felisiak
44e29ea1e9
[1.11.x] Fixed #28293 -- Fixed union(), intersection(), and difference() when combining with an EmptyQuerySet.
...
Thanks Jon Dufresne for the report and Tim Graham for the review.
Backport of 82175ead72
from master
2017-06-13 08:33:26 +02:00
Paulo
927d9b51fe
[1.11.x] Fixed #27967 -- Fixed KeyError in admin's inline form with inherited non-editable pk.
...
Thanks Robin Anupol for the initial report and workaround.
Backport of 9dc83c356d
from master
2017-06-12 21:22:53 -04:00
Jon Dufresne
ccb8297eee
[1.11.x] Fixed #28282 -- Fixed class-based indexes name for models that only inherit Model.
...
Backport of 0c3c37a376
from master
2017-06-08 09:47:18 -04:00
kakulukia
992f143bad
[1.11.x] Fixed #28278 -- Fixed invalid HTML for a required AdminFileWidget.
...
Backport of 525dc283a6
from master
2017-06-06 15:57:08 -04:00
Paulo
a0707947e4
[1.11.x] Fixed #28202 -- Fixed FieldListFilter.get_queryset() crash on invalid input.
...
Backport of 4ad2f86284
from master
2017-06-06 08:18:08 -04:00
Paulo
834d57b4de
[1.11.x] Fixed #28262 -- Fixed incorrect DisallowedModelAdminLookup when a nested reverse relation is in list_filter.
...
Backport of b7f99f84bc
from master
2017-06-05 11:34:43 -04:00
Adam Johnson
b7d6077517
[1.11.x] Fixed #28269 -- Fixed Model.__init__() crash on models with a field that has an instance only descriptor.
...
Regression in d2a26c1a90
.
Backport of ed244199c7
from master
2017-06-05 09:15:55 -04:00
Adam Johnson
fa8346b9a9
[1.11.x] Added a test for Model._meta._property_names.
...
Backport of 36f09c8a29
from master
2017-06-05 09:05:53 -04:00
Claude Paroz
81c3967e55
[1.11.x] Refs #28192 -- Fixed documentation of ChoiceField choices requirement
...
Thanks Tim Graham for noticing the issue.
Backport of 54caca2d34
from master.
2017-06-03 16:19:09 +02:00
Chris Lamb
fa63fc91cc
[1.11.x] Fixed #26755 -- Fixed test_middleware_classes_headers if Django source isn't writable.
...
Backport of 2ec56bb782
from master
2017-06-02 10:29:39 -04:00
Jon Dufresne
1940e3daef
[1.11.x] Fixed #28265 -- Prevented renderer warning on Widget.render() with **kwargs.
...
Backport of 29a518006f
from master
2017-06-02 09:52:53 -04:00
Tim Graham
3cd9a4b1ea
[1.11.x] Sorted imports per isort 4.2.9.
...
Backport of cde31daf88
from master
2017-06-01 13:30:08 -04:00
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