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

8581 Commits

Author SHA1 Message Date
Tim Graham
a0d166306f Removed GeoManager and GeoQuerySet per deprecation timeline. 2017-01-17 20:51:56 -05:00
Tim Graham
ddd3268975 Refs -- Required on_delete for ForeignKey/OneToOneField.
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
0f454f5d4d Refs -- Removed the host parameter for SimpleTestCase.assertRedirects().
Per deprecation timeline.
2017-01-17 14:09:28 -05:00
Tim Graham
f032bbc8b1 Refs -- Removed assignment_tag per deprecation timeline. 2017-01-17 14:09:28 -05:00
Tim Graham
742d666da5 Refs -- Removed django.forms.extras per deprecation timeline. 2017-01-17 14:09:28 -05:00
Tim Graham
03087f80d1 Refs -- Removed Signal.disconnect()'s weak argument.
Per deprecation timeline.
2017-01-17 14:09:28 -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
Tim Graham
0793182694 Cosmetic edits for messages_tests. 2017-01-05 09:31:23 -05:00
Tim Graham
c85831e4b7 Fixed -- 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 -- Removed redundant escaping in admin's "Perhaps it was deleted?" message. 2017-01-04 10:22:17 -05:00
Tim Graham
bff4abacad Refs -- Corrected a bug and improved comments for a staticfiles test. 2017-01-03 19:22:19 -05:00