1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00
Commit Graph

8653 Commits

Author SHA1 Message Date
Tomer Chachamu
e98ae4fe6b [1.11.x] Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.
Backport of 21a3a29dc9 from master
2017-10-21 21:03:52 -04:00
Claude Paroz
398a79ceb6 [1.11.x] Refs #28710 -- Simplified l10n format test
Backport of c1fa6672dd from master.
2017-10-14 21:11:28 +02:00
Claude Paroz
50bbc93ccb [1.11.x] Fixed #28710 -- Fixed the Basque DATE_FORMAT string
Thanks Eneko Illarramendi for the report and initial patch.
Backport of 8c538871bd from master.
2017-10-13 19:52:22 +02:00
Daniel Tao
45b0ec87d3 [1.11.x] Fixed #28601 -- Prevented cache.get_or_set() from caching None if default is a callable that returns None.
Backport of 4d60261b2a from master
2017-10-10 09:35:57 -04:00
Florian Apolloner
42847327d1 [1.11.x] Fixed #28488 -- Reallowed error handlers to access CSRF tokens.
Regression in eef95ea96f.

Backport of c4c128d67c from master
2017-09-20 16:32:24 -04:00
Florian Apolloner
19ea298aaf [1.11.x] Initialized CsrfViewMiddleware once in csrf_tests.
Backport of 77f82c4bf1 from master
2017-09-20 16:32:11 -04:00
Mariusz Felisiak
cee07ba088 [1.11.x] Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary key in an Index's fields.
Backport of fb02ebe889 from master
2017-09-18 14:22:33 -04:00
Josh Schneier
1d1a56c599 [1.11.x] Fixed #28555 -- Made CharField convert whitespace-only values to the empty_value when strip is enabled.
Backport of 48c394a6fc from master
2017-09-05 16:42:15 -04:00
Tim Graham
e35a0c5608 [1.11.x] Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of technical 500 debug page.
This is a security fix.
2017-09-05 11:05:43 -04:00
Zach Liu
f8e0557b01 [1.11.x] Fixed #28550 -- Restored contrib.auth's login() and logout() views' respect of positional arguments.
Regression in 78963495d0.
2017-09-03 12:05:18 -04:00
Nick Pope
ff0b81f3a6 [1.11.x] Fixed typo in ModelAdmin action logging test. 2017-09-02 09:36:51 -04:00
Bo Marchman
8d66bffbae [1.11.x] Fixed #26522 -- Fixed a nondeterministic AssertionError in QuerySet combining.
Thanks Andrew Brown for the test case.

Backport of 9bbb6e2d25 from master
2017-09-01 15:49:33 -04:00
Tim Graham
20c03399d8 [1.11.x] Fixed #27998, #28543 -- Restored logging of ManyToManyField changes in admin's object history.
And prevented ManyToManyField initial data in model forms from being affected
by subsequent model changes.

Regression in 56a55566a791a11420fe96f745b7489e756fc931.

Partial backport of e5bd585c6e and
15b465c584 from master
2017-08-31 09:41:04 -04:00
Mark Rogaski
80a0016c49 [1.11.x] Fixed #28487 -- Fixed runserver crash with non-Unicode system encodings on Python 2 + Windows. 2017-08-31 07:33:01 -04:00
caleb logan
3bb03df0fc [1.11.x] Fixed #28530 -- Prevented SelectDateWidget from localizing years in output.
Backport of 9e2bf65d6a from master
2017-08-29 14:56:23 -04:00
Mads Jensen
c685b8f838 [1.11.x] Refs #25809 -- Omitted pages_per_range from BrinIndex.deconstruct() if it's None.
Backport of fb42d02471 from master
2017-08-26 10:14:20 -04:00
hui shang
58aaf13e75 [1.11.x] Fixed #28513 -- Added POST request support to LogoutView.
Backport of c0f4c60edd from master
2017-08-24 09:11:34 -04:00
Mariusz Felisiak
0d21bdd380 [1.11.x] Fixed #28498 -- Added support for cx_Oracle 6.
- Fixed implicit Decimal to float conversion when input_size is not
specified for Decimal parameters.
- Used encoding, nencoding parameters of cx_Oracle.connect() to support
unicode in DSN.

Thanks Tim Graham for the review.
2017-08-23 10:01:49 +02:00
Kevin Grinberg
90be8cf2a4 [1.11.x] Fixed #28451 -- Restored pre-Django 1.11 Oracle sequence/trigger naming.
Regression in 69b7d4b116.

Backport of c6a3546093 from master
2017-08-22 17:41:25 -04:00
Claude Paroz
dd82f1df55 [1.11.x] Fixed #28502 -- Made stringformat template filter accept tuples.
Backport of 4ead705cb3 and
ed77bea582 from master
2017-08-22 08:57:50 -04:00
Mariusz Felisiak
07e34f8bca [1.11.x] Fixed #28498 -- Fixed test database creation with cx_Oracle 6.
Backport of 6784383e93 from master
2017-08-16 18:42:41 +02:00
Tim Graham
a49764dd9d [1.11.x] Fixed #28441 -- Fixed GEOS version parsing with a commit hash at the end.
A less invasive backport of 78c155cf2e
from master
2017-08-02 09:46:52 -04:00
Rachel Tobin
801b6fb32e [1.11.x] Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy model.
Backport of f9e5f9ae9f from master
2017-07-21 18:26:03 -04:00
Roman Selivanov
99d5059d76 [1.11.x] Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget.
Backport of d4da39685b from master
2017-07-19 14:45:59 -04:00
Florian Apolloner
9350f77c69 [1.11.x] Fixed #28399 -- Fixed QuerySet.count() for union(), difference(), and intersection() queries.
Backport of adab280cef from master
2017-07-15 09:10:42 -04:00
Tim Graham
d9ef8ffb58 [1.11.x] Refs #28174 -- Fixed autoreload test crash on Python 2/non-ASCII path. 2017-07-15 08:48:28 -04:00
Srinivas Reddy Thatiparthy
a3b5df8ed5 [1.11.x] Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it.
Backport of 5debbdfcc8 from master
2017-07-14 13:27:30 -04:00
Mark Rogaski
fc6b90bdb7 [1.11.x] Fixed #28174 -- Fixed crash in runserver's autoreload with Python 2 on Windows with non-str environment variables. 2017-07-13 13:12:29 -04:00
Sergey Fedoseev
30f334cc58 [1.11.x] Fixed #28389 -- Fixed pickling of LazyObject on Python 2 when wrapped object doesn't have __reduce__().
Partial revert of 35355a4ffe.
2017-07-12 09:11:48 -04:00
Mariusz Felisiak
346b46a274 [1.11.x] Fixed #28378 -- Fixed union() and difference() when combining with a queryset raising EmptyResultSet.
Thanks Jon Dufresne for the report. Thanks Tim Graham and Simon Charette
for the reviews.

Backport of ca74e56350 from master
2017-07-10 20:50:50 +02:00
Mariusz Felisiak
b72298de75 [1.11.x] Added test for intersection() when combining with a queryset raising EmptyResultSet.
Backport of 9bca0d0b38 from master
2017-07-10 20:49:15 +02:00
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