Kapil Garg
a8c540accc
[1.11.x] Fixed #27969 -- Fixed models.Field.formfield() setting 'disabled' for fields with choices.
...
Backport of 7e09fa7f51
from master
2017-03-23 13:56:45 -04:00
James Beith
6963564ecc
[1.11.x] Fixed #27975 -- Fixed crash if ModelChoiceField's queryset=None.
...
Regression in 9153d8fbd6385db9f48793662de789fc3d686841.
Backport of 216bb2e8fb
from master
2017-03-22 08:57:02 -04:00
Mariusz Felisiak
b06855facd
[1.11.x] Fixed #27966 -- Bumped required psycopg2 version to 2.5.4.
...
Thanks Tim Graham for the review.
Backport of 43380e9110
from master
2017-03-21 17:40:04 +01:00
Tim Graham
e5880516f9
[1.11.x] Fixed #27915 -- Allowed Meta.indexes to be defined in abstract models.
...
Thanks Markus Holtermann for review.
Backport of 3d19d1428a
from master
2017-03-21 11:32:43 -04:00
Sergey Fedoseev
4f02adbf53
[1.11.x] Fixed #27965 -- Fixed precision comparison in a geoforms test (refs #27939 ).
...
Backport of 816c5753ac
from master
2017-03-21 09:05:00 -04:00
Tim Graham
e0ddfa3af3
[1.11.x] Fixed #27890 -- Fixed FileNotFoundError cleanup exception in runtests.py on Python 3.6+.
...
Backport of 0c6c859d4e
from master
2017-03-20 12:02:09 -04:00
Mads Jensen
0b93a992e5
[1.11.x] Fixed #27935 -- Fixed crash with BrinIndex name > 30 characters.
...
Backport of 82bb4e684f
from master
2017-03-18 08:48:17 -04:00
Tim Graham
c548dba428
[1.11.x] Fixed #27939 -- Updated OpenLayersWidget.map_srid for OpenLayers 3.
...
Regression in 2ebfda38e6
(refs #25004 ).
Backport of 93eca976c1
from master
2017-03-17 12:59:10 -04:00
Mariusz Felisiak
17d75472f0
[1.11.x] Fixed nondeterministic ordering test failure in model_forms.
...
Backport of 2767ef3ca7
from master
2017-03-17 09:44:45 +02:00
Tim Graham
4b57fa3746
[1.11.x] Updated postgis.net and gaia-gis.it links to https.
...
Backport of 5bd7ffc313
from master
2017-03-16 14:03:52 -04:00
Josh Schneier
0cc9175c76
[1.11.x] Fixed #27897 -- Fixed crash with 'pk' in ModelAdmin.search_filters.
...
Backport of 6bc4ff36db
from master
2017-03-15 13:45:36 -04:00
Tim Graham
a95616944b
[1.11.x] Refs #27563 -- Fixed ModelChoiceField.__deepcopy__() so forms don't share a queryset cache.
...
Thanks Luke Benstead for the report Simon Charettes for the fix.
Backport of 44f9241c48
from master
2017-03-15 12:55:05 -04:00
Claude Paroz
70c5b8db42
[1.11.x] Refs #27920 -- Added missing encoding preamble on widget test file
2017-03-14 20:18:51 +01:00
Claude Paroz
d8e90040e9
[1.11.x] Fixed #27920 -- Restored empty RadioSelect choice producing value=""
...
Regression in b52c73008a
.
Thanks Tim Graham for the review.
Backport of 540ae68a5c
from master.
2017-03-14 18:27:19 +01:00
Tim Graham
e9ba8563c1
[1.11.x] Reverted "Refs #16682 -- Tested transaction.atomic() with KeyboardInterrupt."
...
This reverts commit d895fc9ac0
since the
test is problematic as described in the ticket.
Backport of dfbdba924f
from master
2017-03-09 10:09:00 -05:00
Camilo Nova
33d2c53fb1
[1.11.x] Fixed #27891 -- Added PasswordResetConfirmView.post_reset_login_backend.
...
Backport of 5db465d5a6
from master
2017-03-07 19:54:23 -05:00
Tim Graham
36d640cd1f
[1.11.x] Factored out uid/user tokens in auth_tests urlpatterns.
...
Backport of 72ff9d53e6
from master
2017-03-07 19:53:08 -05:00
Raphael Merx
89b31b312e
[1.11.x] Fixed #27905 – Added RelatedFieldWidgetWrapper.value_omitted_from_data().
...
Backport of fd75c8f2b7
from master
2017-03-07 13:56:45 -05:00
Claude Paroz
ca58a405fc
[1.11.x] Refs #27622 -- Fixed a regression in JSON content-type detection
...
A JSON Content-Type can contain further content, like charset for example.
Backport of 145f6c3ed6
from master.
2017-03-07 17:00:20 +01:00
Claude Paroz
77c3cbe08a
[1.11.x] Renamed a test variable to prevent possible conflict with imports
...
Backport of 324c4b6371
from master.
2017-03-07 16:33:16 +01:00
Tim Graham
6392bf26ca
[1.11.x] Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.
...
Backport of 6ae1b04fb5
from master
2017-03-04 09:04:40 -05:00
Tim Graham
1f20326db0
[1.11.x] Fixed #27887 -- Fixed URLs check crash with namespaced URLs inside non-namespaced URLs.
...
Backport of b23d264046
from master
2017-03-03 10:52:48 -05:00
David Szotten
93c8e2d50d
[1.11.x] Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
...
Backport of d82ee32aac
from master
2017-03-02 10:58:47 -05:00
Tim Graham
6109a04251
[1.11.x] Fixed a backends test with psycopg2 2.7.
...
Backport of 49a63d08d3
from master
2017-03-01 13:20:23 -05:00
Matthew Schinckel
2864bb3ba6
[1.11.x] Fixed #27862 -- Fixed incorrectly quoted table aliases in Subquery SQL.
...
Add aliases from resolved querysets to the parent query's external
aliases to prevent those aliases from being quoted.
Thanks to Vasily Stepanov for the report and Tim Graham for the review.
Backport of f48bc7c3db
from master
2017-03-01 08:21:12 -05:00
Chris Lamb
5a85f2ca5f
[1.11.x] Fixed #27873 -- Fixed crash in setup_test_environment() if ALLOWED_HOSTS is a tuple.
...
Regression in 17e661641d
Backport of 339d526d55
from master
2017-02-24 14:06:42 -05:00
Tim Graham
53f5dc10cd
[1.11.x] Refs #25187 -- Fixed AuthBackend.authenticate() compatibility for signatures that accept a request kwarg.
...
Backport of c31e7ab5a4
from master
2017-02-24 13:59:34 -05:00
Chris Lamb
0417bf47a6
[1.11.x] Fixed #27874 -- Fixed URL namespace warning (urls.W005) for nested namespaces.
...
Backport of 8d4885ede5
from master
2017-02-24 13:59:28 -05:00
Vytis Banaitis
d03153e3b0
[1.11.x] Fixed #27856 -- Improved accuracy of date subtraction on PostgreSQL.
...
Accuracy was incorrect when dates differ by a month or more.
Backport of 4045fd56cb
from master
2017-02-21 12:49:31 -05:00
Collin Anderson
808d33c1bf
[1.11.x] Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped widget.
...
Backport of fb7e0e01af
from master
2017-02-20 08:48:17 -05:00
Mariusz Felisiak
87775b64cd
[1.11.x] Fixed #27843 -- Fixed truncate_name() when the name contains a username.
...
Backport of b935190572
from master
2017-02-17 09:44:36 -05:00
Mariusz Felisiak
a66f448f11
[1.11.x] Added tests for db.backends.utils.truncate_name().
...
Backport of 1f7ca85866
from master
2017-02-17 09:30:32 -05:00
Vytis Banaitis
eedf276ed1
[1.11.x] Fixed #27828 -- Fixed a crash when subtracting Integer/DurationField from DateField on Oracle/PostgreSQL.
...
Backport of d5088f838d
from master
2017-02-16 12:35:40 -05:00
Tim Graham
2f6cdc09c4
[1.11.x] Fixed #27135 -- Made index introspection return Index.suffix.
...
Backport of b008f7cc56
from master
2017-02-15 21:07:53 -05:00
Markus Holtermann
f5ff5be2c1
[1.11.x] Fixed #27840 -- Fixed KeyError in PasswordResetConfirmView.form_valid().
...
When a user is already logged in when submitting the password and
password confirmation to reset a password, a KeyError occurred while
removing the reset session token from the session.
Refs #17209
Thanks Quentin Marlats for the report and Florian Apolloner and Tim
Graham for the review.
2017-02-15 00:38:57 +01:00
Tim Graham
da2e92d25e
[1.11.x] Fixed GeoIP test failure with the latest data.
2017-02-14 09:08:17 -05:00
amalia
b54fff2938
[1.11.x] Fixed #27820 -- Fixed RequestDataTooBig/TooManyFieldsSent crash.
...
Backport of 2f10216f84
from master
2017-02-13 16:43:23 -05:00
Robert Roskam
c091614450
[1.11.x] Fixed #27367 -- Doc'd and tested reversing of URLs with the same name.
...
Thanks Reinout van Rees for contributing to the patch.
Backport of 98bcc5d81b
from master
2017-02-11 09:02:30 -05:00
Mads Jensen
ded0632d94
[1.11.x] Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.
...
Backport of fb5bd38e3b
from master
2017-02-11 07:16:58 -05:00
Tim Graham
9658f0d266
[1.11.x] Fixed #27722 -- Reallowed using django.Template in {% include %}.
...
Backport of fe2d288434
from master
2017-02-11 06:52:14 -05:00
Tim Graham
eeb28f4751
[1.11.x] Fixed #27742 -- Reverted "Fixed #24607 -- Serialized natural keys in multi-table inheritance models."
...
This reverts commit 74a575eb72
as it causes
unexpected migrations and doesn't seem to be the best solution.
Backport of 0595bca221
from master
2017-02-11 06:40:30 -05:00
ClairePhila
4101b57b19
[1.11.x] Refs #27148 -- Fixed UUIDField.to_python(None) crash.
...
Regression in 2f9861d823
.
Backport of d26413113c
from master
2017-02-10 14:34:14 -05:00
Zoltan Gyarmati
f94e1a5de4
[1.11.x] Fixed #27815 -- Made LoginView pass the request kwarg to AuthenticationForm.
...
Backport of 41ba27fefd
from master
2017-02-07 09:42:21 -05:00
Tim Graham
2b17e4770b
[1.11.x] Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default.
...
Backport of 4353640ea9
from master
2017-02-06 20:55:47 -05:00
Jon Dufresne
f14899412d
[1.11.x] Fixed running TransactionsPerRequestTests in isolation.
...
Caused by `contrib/auth/backends.py` changes in
cb7bbf97a7
.
Backport of 3f62d20a9b
from master
2017-02-04 14:20:10 -05:00
David Sanders
fe86a785a1
[1.11.x] Fixed #27741 -- Isolated TestCollectionHashedFilesCache in a tmpdir.
...
Backport of 8e3f9d3ee2
from master
2017-02-03 19:10:19 -05:00
Lex Berezhny
d43f847847
[1.11.x] Fixed #27800 -- Fixed QuerySet.annotate(Length(...)).distinct() crash.
...
Backport of ac5f886c56
from master
2017-01-31 18:46:07 -05:00
Jon Dufresne
52e9c1c8b7
[1.11.x] Fixed #27758 -- Reallowed AdvancedModelIterator pattern after template widget rendering.
...
Backport of 6d8979f4c2
from master
2017-01-31 09:43:31 -05:00
Shai Berger
437e0ba533
[1.11.x] Fixed #25192 -- 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 #27790 -- Reverted "Removed available_apps on TestCase subclasses."
...
This reverts commit 91023d79ec
as it
increases memory usage for the test suite.
Backport of 7d50d2bcb8
from master
2017-01-28 10:14:11 -05:00
Mariusz Felisiak
092f09fcc1
[1.11.x] Fixed #27781 -- Made simplify_regex() remove outstanding '?' characters.
...
Regression in f0ef0c49e9
.
Backport of c37ec5a659
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 11856ea44e
from master
2017-01-25 13:53:59 -05:00
Ed Morley
15967d5e4a
[1.11.x] Simplified tests with assertDoesNotOptimize().
...
Backport of bfd42392ab
from master
2017-01-25 13:53:05 -05:00
Mads Jensen
c94cb4f865
[1.11.x] Removed unused variables that are overwritten.
...
Backport of ebf34c3cdc
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 0d74c41981
from master
2017-01-23 19:14:43 -05:00
Jon Dufresne
9e9d0f8ef7
[1.11.x] Fixed #27759 -- Prevented forms attrs.html template from rendering False attrs.
...
Regression in b52c73008a
.
Backport of 5fa390ee81
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 88183117c2
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 7d20094996
from master
2017-01-19 08:20:15 -05:00
Tim Graham
f01ad1cb6a
Refs #27683 -- Allowed setting isolation level in DATABASES ['OPTIONS'] on MySQL.
2017-01-17 11:16:15 -05:00
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