1
0
mirror of https://github.com/django/django.git synced 2025-03-28 18:20:49 +00:00

8486 Commits

Author SHA1 Message Date
Jon Dufresne
52e9c1c8b7 [1.11.x] Fixed -- Reallowed AdvancedModelIterator pattern after template widget rendering.
Backport of 6d8979f4c2fbfb9fd5db92acd72489cbbcbdd5d1 from master
2017-01-31 09:43:31 -05:00
Shai Berger
437e0ba533 [1.11.x] Fixed -- Fixed squashmigrations crash with RunPython.noop on Python 2.
Thanks Adam Johnson for review.
2017-01-31 08:02:18 -05:00
Tim Graham
aa52e8b77b [1.11.x] Refs -- 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
Mariusz Felisiak
092f09fcc1 [1.11.x] Fixed -- 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 -- 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
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
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
9e9d0f8ef7 [1.11.x] Fixed -- 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 -- Fixed quote location in multiple_input.html forms templates.
Backport of 88183117c28a8d669054e9064e7bd4de19ebcd28 from master
2017-01-23 07:45:22 -05: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
f01ad1cb6a Refs -- Allowed setting isolation level in DATABASES ['OPTIONS'] on MySQL. 2017-01-17 11:16:15 -05:00
Mads Jensen
65e321b781 Refs -- Made a few late review comments for BrinIndex. 2017-01-16 13:23:20 -05:00
Josh Smeaton
1df89a60c5 Fixed -- 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
Mads Jensen
e585c43be9 Fixed -- 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 -- Added Subquery and Exists database expressions.
Thanks Josh Smeaton for Oracle fixes.
2017-01-14 09:12:24 -05:00
Florian Apolloner
84c1826ded Fixed -- 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
Simon Charette
2e55790838 Refs -- 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 -- 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
Josh Smeaton
bcce6bb7c7 Changed a test to be consistent when run in parallel.
This particular test was sometimes failing when running the test suite
in parallel. The `id` was different depending on the order the tests
were run. The test was incorrectly comparing model primary keys rather
than ensuring they didn't change.
2017-01-14 15:41:49 +11:00
Simon Charette
4e48cfc108 Fixed -- Fixed get_for_models() for proxies with an empty cache.
Thanks Peter Inglesby for the report and tests.
2017-01-13 10:02:01 -05:00
Romain Garrigues
ede59ef6f3 Fixed -- Prevented possibie password reset token leak via HTTP Referer header.
Thanks Florian Apolloner for contributing to this patch and
Collin Anderson, Markus Holtermann, and Tim Graham for review.
2017-01-13 09:17:54 -05:00
Simon Charette
91023d79ec Removed available_apps on TestCase subclasses.
TestCase subclasses are wrapped in a transaction that prevents any data from
being persisted between test runs andi thus don't require limiting the tables
to be flushed to a subset of available apps like TransactionTestCase subclasses
do.
2017-01-13 08:50:03 -05:00
Simon Charette
dc1193085d Made contenttypes and auth apps unavailable when not necessary in tests. 2017-01-13 08:50:03 -05:00
Mariusz Felisiak
974d14534c Fixed -- Set MultiWidget's subwidgets input type from attrs argument.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-13 06:34:33 -05:00
Tim Graham
3226536127 Split AuthTemplateTests into test methods. 2017-01-12 13:18:49 -05:00
Peter Inglesby
0b2e5da6ed Fixed -- Added interface name to shell's IPython/bython import error. 2017-01-12 13:12:21 -05:00
Marten Kenbeek
1358a67bf9 Fixed -- Clarified NoReverseMatch error message when no view is found. 2017-01-11 21:40:18 -05:00
François Freitag
f3b7c05936 Refs -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.
Thanks to Josh Smeaton for the idea of implementing server-side cursors
in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin
Turner for their previous work. Also Simon Charette and Tim Graham for
review.
2017-01-11 09:25:37 -05:00
David Sanders
53bffe8d03 Fixed -- Fixed HashedFilesMixin correctness with nested paths. 2017-01-11 09:21:29 -05:00
Ed Morley
7156a6c9c4 Fixed -- Allowed migration optimization across AlterModelOptions. 2017-01-10 18:38:48 -05:00
Mariusz Felisiak
6872ce2266 Fixed -- Reallowed Input widget's attrs argument to set the input type.
Regression in b52c73008a9d67e9ddbb841872dc15cdd3d6ee01.
2017-01-10 11:38:27 -05:00
Adam Chainz
9daf8c43bd Fixed -- Made admin checks run when DEBUG=False. 2017-01-10 07:02:13 -05:00
Adam Chainz
d57ecf40eb Fixed -- Made admin's checks run at check time instead of during registration.
Thanks Morgan Aubert for the test.
2017-01-10 07:02:13 -05:00
Raffaele Salmaso
ed8c0c941d Fixed -- Made messages' add_message() request check use ducktyping. 2017-01-09 18:03:10 -05:00
Adam Chainz
7dc8d9238a Skipped unnecessary system checks in user_commands test. 2017-01-09 17:23:24 -05:00
François Freitag
ee1c1c696b Made prefetch_related SQL inspection tests less brittle.
After refs , integers might appear outside the WHERE clause.
2017-01-09 11:18:32 -05:00
Tim Graham
9932e1bf52 Fixed test isolation in a couple migrations tests.
Without this, tests from refs  fail when running with --reverse.
2017-01-09 08:02:09 -05:00
Florian Apolloner
d27643354e Require Jinja2 >= 2.9.2 in test requirements.
While our code also works with any Jinja2 >2.7,<2.9 use >2.9.2 for
simplicity reasons in the requirements file.
2017-01-08 18:43:24 +01:00
Mariusz Felisiak
f8e36047da Fixed -- Optimized inspectdb tests by specifying database tables. 2017-01-07 15:41:42 -05:00
Tim Graham
853fe6f697 Pinned jinja2<2.9 in test requirements.
Kept the build green until a regression is fixed:
https://github.com/pallets/jinja/issues/640
2017-01-07 15:35:29 -05:00
Adam Chainz
334096dfac Simplified a contenttypes check test with mock. 2017-01-07 10:24:40 -05:00
Adam Chainz
cd86f03591 Refs -- Fixed invalid ModelAdmins in tests. 2017-01-07 10:06:51 -05:00
Sebastian Spiegel
8b734d2f99 Fixed -- Made app_label arguments limit showmigrations --plan output. 2017-01-06 19:50:31 -05:00
Simon Charette
d976760260 Fixed , Refs -- Fixed iexact lookup on JSONField keys.
Thanks Harris Lapiroff for the report.
2017-01-06 19:25:32 -05:00
Tim Graham
8516f7c49b Fixed -- Added django.test.utils.ContextList.get() 2017-01-06 19:23:42 -05:00
Dmitry
12cefee5d8 Refs -- Prevented newlines in attrs.html widget rendering.
Removed the trailing newline from widget attrs.html template.
The solution may be revisited by fixing refs  but not
for Django 1.11.

Thanks Dmitry Ivanchenko for the report and Preston Timmons for advice.
2017-01-06 19:11:32 -05:00
Andy Craze
97c1931c4f Fixed -- Reorganized i18n tag tests. 2017-01-06 10:33:07 -05:00
Claude Paroz
9390533951 Fixed -- Measured email long lines on encoded content
Thanks Pavel Pokrovskiy for the report and Tim Graham for the review.
2017-01-06 16:04:59 +01:00