Mads Jensen
65e321b781
Refs #25809 -- Made a few late review comments for BrinIndex.
2017-01-16 13:23:20 -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
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
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
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 #27709 -- 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 #27518 -- 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 #27723 -- Set MultiWidget's subwidgets input type from attrs argument.
...
Regression in b52c73008a
.
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 #27721 -- Added interface name to shell's IPython/bython import error.
2017-01-12 13:12:21 -05:00
Marten Kenbeek
1358a67bf9
Fixed #27713 -- Clarified NoReverseMatch error message when no view is found.
2017-01-11 21:40:18 -05:00
François Freitag
f3b7c05936
Refs #16614 -- 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 #24452 -- Fixed HashedFilesMixin correctness with nested paths.
2017-01-11 09:21:29 -05:00
Ed Morley
7156a6c9c4
Fixed #27717 -- Allowed migration optimization across AlterModelOptions.
2017-01-10 18:38:48 -05:00
Mariusz Felisiak
6872ce2266
Fixed #27712 -- Reallowed Input widget's attrs argument to set the input type.
...
Regression in b52c73008a
.
2017-01-10 11:38:27 -05:00
Adam Chainz
9daf8c43bd
Fixed #26961 -- Made admin checks run when DEBUG=False.
2017-01-10 07:02:13 -05:00
Adam Chainz
d57ecf40eb
Fixed #27673 -- 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 #27688 -- 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 #16614 , 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 #27432 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 #27700 -- 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 #26961 -- Fixed invalid ModelAdmins in tests.
2017-01-07 10:06:51 -05:00
Sebastian Spiegel
8b734d2f99
Fixed #27432 -- Made app_label arguments limit showmigrations --plan output.
2017-01-06 19:50:31 -05:00
Simon Charette
d976760260
Fixed #27693 , Refs #27257 -- Fixed iexact lookup on JSONField keys.
...
Thanks Harris Lapiroff for the report.
2017-01-06 19:25:32 -05:00
Tim Graham
8516f7c49b
Fixed #27698 -- Added django.test.utils.ContextList.get()
2017-01-06 19:23:42 -05:00
Dmitry
12cefee5d8
Refs #15667 -- Prevented newlines in attrs.html widget rendering.
...
Removed the trailing newline from widget attrs.html template.
The solution may be revisited by fixing refs #9198 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 #24423 -- Reorganized i18n tag tests.
2017-01-06 10:33:07 -05:00
Claude Paroz
9390533951
Fixed #27696 -- 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
Tim Graham
0793182694
Cosmetic edits for messages_tests.
2017-01-05 09:31:23 -05:00
Tim Graham
c85831e4b7
Fixed #27658 -- Prevented collectstatic from overwriting newer files in remote storages.
...
Thanks revimi for the initial patch.
2017-01-04 12:50:31 -05:00
Tim Graham
f60d4e704d
Tested collectstatic's deleting of files/symlinks when toggling --link.
2017-01-04 12:49:57 -05:00
Tim Graham
8ea541e6a2
Refs #2856 -- Removed redundant escaping in admin's "Perhaps it was deleted?" message.
2017-01-04 10:22:17 -05:00
Tim Graham
bff4abacad
Refs #15035 -- Corrected a bug and improved comments for a staticfiles test.
2017-01-03 19:22:19 -05:00
anabelensc
1c12df4aa6
Fixed #25912 -- Added binary left/right shift operators to F expressions.
...
Thanks Mariusz Felisiak for review and MySQL advice.
2017-01-03 14:15:46 -05:00
Ketan Bhatt
f0ef0c49e9
Fixed #26621 -- Corrected simplify_regex()'s handling of named capture groups.
2017-01-03 13:55:11 -05:00
Mariusz Felisiak
fd2f7e4767
Fixed #27681 -- Fixed binary &/| operators for negative values on MySQL.
2017-01-03 12:41:44 -05:00
Karen Tracey
27267afc41
Fixed #2856 -- Replaced some 404s with messages in admin.
...
Instead of a 404, return a redirect to admin index page with a message
indicating that the requested object does not exist. This avoids the
admin returning 404 from "Recent Actions" links for deleted objects.
2017-01-03 11:31:05 -05:00
Claude Paroz
946dd5bde2
Refs #25004 -- Fixed test failure introduced by OpenLayers 3 update.
2017-01-03 11:11:00 -05:00
Tim Graham
c04207cd38
Replaced some GIS has_X_method skips with supports_X_aggr/has_X_function.
2017-01-03 09:49:00 -05:00
Claude Paroz
2ebfda38e6
Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3
...
Thanks Tim Graham for the review.
2017-01-02 19:45:52 +01:00