1
0
mirror of https://github.com/django/django.git synced 2025-03-24 00:00:45 +00:00

23805 Commits

Author SHA1 Message Date
Tim Graham
aa52e8b77b [1.11.x] Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."
This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it
increases memory usage for the test suite.

Backport of 7d50d2bcb8a3cf3fea727174717ead7e6508e9e2 from master
2017-01-28 10:14:11 -05:00
Srinivas Reddy Thatiparthy
f706576adf [1.11.x] Removed obsolete sentence in ManagementUtility docstring.
Backport of a6755b29e9335723c9347a36d4000a3157b05441 from master
2017-01-28 08:10:07 -05:00
Andrew Nester
33ff4e4e58 [1.11.x] Fixed #27769 -- Documented option naming differences between django-admin and call_command().
Backport of c8d21f335113dcf6009d7aa9810d4e77dc58c75d from master
2017-01-27 17:21:41 -05:00
andrewnester
d9f2887645 [1.11.x] Fixed #27678 -- Warned that the template system isn't safe against untrusted authors.
Backport of d2e40dd8c2031cd03700e72d87d455d5e974800c from master
2017-01-27 11:29:55 -05:00
chillaranand
a364fb3810 [1.11.x] Fixed #27501 -- Documented lazy evaluation of ModelChoiceField.queryset.
Backport of d9aeee205d93b12c96da449c64c1f17ca8786086 from master
2017-01-26 18:58:43 -05:00
Mariusz Felisiak
092f09fcc1 [1.11.x] Fixed #27781 -- Made simplify_regex() remove outstanding '?' characters.
Regression in f0ef0c49e9284f262fbc63e8a497699ca4a248fe.

Backport of c37ec5a6595f963a04fae1b17858225c2b3d08c4 from master
2017-01-26 18:36:54 -05:00
Tim Graham
7dda48bf18 [1.11.x] Refs #27741 -- Fixed staticfiles_tests.test_views when run in isolation.
Backport of 11856ea44e4dd1ff2358c559c0d04ac848832c23 from master
2017-01-25 13:53:59 -05:00
Ed Morley
15967d5e4a [1.11.x] Simplified tests with assertDoesNotOptimize().
Backport of bfd42392ab8db3942b2cbb36a94af3b48813de13 from master
2017-01-25 13:53:05 -05:00
Tim Graham
9194df2f55 [1.11.x] Corrected http.multipartparser.exhaust() docstring.
MultiPartParserError was removed in
ebf34c3cdcd2c75349c60a064427ac255958bf9b.

Backport of 90db4bb0d72e4731052bd33500840fff00834768 from master
2017-01-25 13:40:17 -05:00
Tim Graham
ec0af19f4c [1.11.x] Bumped MySQLdb version requirement to 1.2.3.
Older versions don't support Python 2.7.

Partial backport of 2d96c027f5eb32c2c09bd57df2240ae1d343b98e from master
2017-01-25 10:31:24 -05:00
Mads Jensen
c94cb4f865 [1.11.x] Removed unused variables that are overwritten.
Backport of ebf34c3cdcd2c75349c60a064427ac255958bf9b from master
2017-01-25 09:15:36 -05:00
Paolo Melchiorre
a69fc396e4 [1.11.x] Fixed typo in docs/ref/models/expressions.txt.
Backport of 5890d6ab03ebc7dac46ce7d9540b5768785caa34 from master
2017-01-25 07:46:37 -05:00
Nick Mavrakis
fb55247d59 [1.11.x] Fixed #27743 -- Prevented admin's "+" button icon from overlapping its label.
Backport of e5c2e43cc832028a974399af07a1c3ba6afa2467 from master
2017-01-23 19:25:02 -05:00
Jon Dufresne
783afda70a [1.11.x] Replaced dict() usage with dict literals.
Literals are faster and more idiomatic.

Backport of 0d74c41981687598d3fa0a7eb9712ce4c387ca19 from master
2017-01-23 19:14:43 -05:00
Jon Dufresne
706b30fc37 [1.11.x] Replaced "not var is ..." with "is not" in attrs.html.
Backport of f0573aad4befcea969c73fa5f9a624ac22603164 from master
2017-01-23 13:14:41 -05:00
Jon Dufresne
9e9d0f8ef7 [1.11.x] Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.

Backport of 5fa390ee81c5a963fc4476e8de6c1e5e1fc57e22 from master
2017-01-23 09:28:25 -05:00
Jon Dufresne
6969100595 [1.11.x] Fixed #27761 -- Fixed quote location in multiple_input.html forms templates.
Backport of 88183117c28a8d669054e9064e7bd4de19ebcd28 from master
2017-01-23 07:45:22 -05:00
Jon Dufresne
e4dab20a27 [1.11.x] Removed ChoiceWidget.render() as it duplicates parent implementation.
Backport of ecd5944666558bbb3a12b0aa0058685a81ce7162 from master
2017-01-23 07:33:42 -05:00
Arkadiusz Adamski
a15d81a183 [1.11.x] Removed unused imports in example migrations.
Backport of a76d12ceb437a68efb6a19a588fb29a7a0e5a5e2 from master
2017-01-21 07:42:10 -05:00
Alasdair Nicol
6bb01b0b3c [1.11.x] Refs #16859 -- Updated CSRF FAQ to mention CSRF_USE_SESSIONS setting.
Backport of 503e944ac792498e7b38c799d8e4b06f74e9d65a from master
2017-01-20 19:00:56 -05:00
Tim Graham
c96d1c7476 [1.11.x] Fixed django/utils/http.py comment typo.
Backport of d29fd3f9a63f1e515fa8ed863b08a5389938b05f from master
2017-01-19 13:22:36 -05:00
Claude Paroz
518693bef5 [1.11.x] Updated translation catalogs 2017-01-19 17:07:17 +01:00
james mike dupont
b7621bbe80 [1.11.x] Fixed spelling mistakes in code and comments.
Backport of 7d200949968002d2c2b4390953e8bda7153a49c9 from master
2017-01-19 08:20:15 -05:00
Tim Graham
246bece37a [1.11.x] Bumped version to 1.11a1. 1.11a1 2017-01-17 19:31:46 -05:00
Tim Graham
792c13fbba [1.11.x] Updated man page for Django 1.11 alpha. 2017-01-17 19:20:49 -05:00
Tim Graham
4eb4453dac [1.11.x] Bumped django_next_version in docs config. 2017-01-17 19:03:15 -05:00
Tim Graham
4054013e00 Removed obsolete GIS install instructions. 2017-01-17 13:47:56 -05:00
Ed Morley
44cce3ed00 Fixed #27739 -- Documented LabelCommand.label. 2017-01-17 13:20:31 -05:00
Ed Morley
d1eda9b4ad Refs #24109 -- Doc'd the elidable feature in squashing migrations docs. 2017-01-17 13:02:58 -05:00
Tim Graham
f01ad1cb6a Refs #27683 -- Allowed setting isolation level in DATABASES ['OPTIONS'] on MySQL. 2017-01-17 11:16:15 -05:00
Markus Holtermann
46e0335583 Refs #27666 -- Added ProjectState.reload_models(). 2017-01-17 08:12:53 -05:00
Markus Holtermann
45ded053b1 Fixed #27666 -- Delayed rendering of recursivly related models in migration operations. 2017-01-17 08:12:52 -05:00
Mariusz Felisiak
7d2db2a7b8 Refs #27690 -- Removed sleep before drop test db on Oracle. 2017-01-16 19:20:28 -05:00
Mads Jensen
65e321b781 Refs #25809 -- Made a few late review comments for BrinIndex. 2017-01-16 13:23:20 -05:00
Tim Graham
0f46bc67e2 Fixed #27735 -- Doc'd form widget l10n change (refs #15667). 2017-01-16 12:58:21 -05:00
Tim Graham
b5511dddd6 Moved unneeded ImproperlyConfigured inner imports. 2017-01-16 12:48:41 -05:00
Josh Smeaton
1df89a60c5 Fixed #25307 -- Fixed QuerySet.annotate() crash with conditional expressions.
Thanks Travis Newport for the tests and Josh Smeaton for contributing
to the patch.
2017-01-16 10:03:15 -05:00
Tim Graham
f2d2f17896 Removed empty sections from 1.11 release notes. 2017-01-16 09:58:26 -05:00
Mads Jensen
0bc59978ab Fixed #27736 -- Used decorators for lookup registration. 2017-01-16 09:22:26 -05:00
François Freitag
05bdf4f44d Refs #16614 -- Called _prepare_cursor() on every created cursor. 2017-01-16 09:12:23 -05:00
Dmitry Dygalo
1f10c3994c Removed unneeded variable in contrib/postgres/fields/jsonb.py. 2017-01-16 06:24:16 -05:00
Mads Jensen
7e299c0e03
Refs #25809 -- Prefered imports from django.db.models. 2017-01-15 22:02:39 +01:00
Mads Jensen
e585c43be9 Fixed #25809 -- Added BrinIndex support in django.contrib.postgres.
Thanks Tim Graham and Markus Holtermann for review.
2017-01-15 13:37:18 +01:00
Matthew Schinckel
236ebe94bf Fixed #27149 -- Added Subquery and Exists database expressions.
Thanks Josh Smeaton for Oracle fixes.
2017-01-14 09:12:24 -05:00
Florian Apolloner
84c1826ded Fixed #27718 -- Added QuerySet.union(), intersection(), difference().
Thanks Mariusz Felisiak for review and Oracle assistance.
Thanks Tim Graham for review and writing docs.
2017-01-14 08:32:07 -05:00
Claude Paroz
611ef422b1 Fixed #27387 -- Doc'd required HTML attribute in Field.required docs. 2017-01-14 07:30:54 -05:00
François Freitag
6b6be692fc Refs #16614 -- Prevented database errors from being masked by cursor close.
When an error occurred during the cursor.execute statement, the cursor
is closed. This operation did not fail with client-side cursors. Now,
with server-side cursors, the close operation might fail (example
below). The original error should be raised, not the one raised by
cursor.close(), this is only clean-up code.

For example, one can attempt to create a named cursor for an invalid
query. psycopg will raise an error about the invalid query and the
server-side cursor will not be created on PostgreSQL. When the code
attempts to cursor.close(), it asks psycopg to close a cursor that was
not created. pyscopg raises a new error: psycopg2.OperationalError:
cursor "_django_curs_140365867840512_20" does not exist.
2017-01-14 07:13:00 -05:00
Simon Charette
2e55790838 Refs #25226 -- Cloned ArrayField.base_field on deconstruction.
This prevents the base_field from sharing attributes with the one used
during migrations.
2017-01-14 06:31:34 -05:00
Jinank Jain
f4c0eec713 Fixed #27699 -- Added negative timedelta support to parse_duration() 2017-01-14 11:17:54 +01:00
Josh Smeaton
8ade277ab1 Fixed tests that rely on hardcoded id with keepdb 2017-01-14 15:41:49 +11:00