Przemysław Suliga
1f68bb5683
Refs #26902 -- Protected against insecure redirects in set_language().
2016-08-19 19:16:00 -04:00
Przemysław Suliga
549b90fab3
Refs #26902 -- Protected against insecure redirects in Login/LogoutView.
2016-08-19 19:01:01 -04:00
Przemysław Suliga
5e5a17028f
Fixed #26902 -- Allowed is_safe_url() to require an https URL.
...
Thanks Andrew Nester, Berker Peksag, and Tim Graham for reviews.
2016-08-19 18:51:33 -04:00
Tim Graham
1d1e246db6
Removed DateTimeAwareJSONEncoder alias.
2016-08-19 15:00:16 -04:00
Matthew Wilkes
4f138fe5a4
Fixed #22288 -- Fixed F() expressions with the __range lookup.
2016-08-19 13:40:56 -04:00
Chris Jerdonek
f6cd669ff2
Fixed #22414 -- Ensured that LiveServerTestCase closes connections.
2016-08-19 12:47:41 -04:00
Jon Dufresne
f5c6d3c8d9
Fixed #27068 -- Unified form field initial data retrieval.
2016-08-18 17:55:47 -07:00
Ian Foote
39f35d4b9d
Fixed #25871 -- Added expressions support to QuerySet.values().
2016-08-18 16:05:15 -04:00
Loïc Bistuer
d4eefc7e2a
Fixed #27073 -- Removed duplicated managers in `Model._meta.managers`.
2016-08-19 01:24:45 +07:00
Jim Nicholls
76ab885118
Fixed #27054 -- Fixed makemigrations crash with a read-only database.
2016-08-18 08:27:40 -04:00
Chris Jerdonek
3d0a3c5fff
Fixed #27077 -- Made SQLite's in-memory database checks DRYer.
2016-08-17 20:34:18 -04:00
Chris Jerdonek
49fcbe73c5
Fixed #27078 -- Simplified "if" logic in SQLite's _get_test_db_name().
2016-08-17 16:20:01 -04:00
Andreas Pelme
e76981b433
Fixed #26840 -- Added test.utils.setup/teardown_databases().
2016-08-17 13:55:04 -04:00
Adam Chainz
19e20a2a3f
Fixed crash comparing CheckMessage objects to non-CheckMessage objects.
2016-08-16 17:17:34 -04:00
Akshesh
c969b17ad8
Refs #26709 -- Added type check for models.Index fields argument.
2016-08-16 09:53:50 -04:00
Akshesh
a71724cd04
Refs #26709 -- Added index name to AddIndex.describe().
2016-08-16 09:11:33 -04:00
Ian Foote
698be78d74
Fixed #24854 -- Refactored QuerySet._values
...
Added django.db.models.sql.query.Query.set_values() method to handle
query mutation.
2016-08-16 10:03:40 +10:00
Tim Graham
7549eb0004
Fixed #27009 -- Made update_session_auth_hash() rotate the session key.
2016-08-15 19:29:12 -04:00
Tim Graham
937d752d3d
Fixed #27058 -- Reallowed the {% for %} tag to unpack any iterable.
...
Thanks Sergei Maertens for the report and patch.
2016-08-15 15:39:22 -04:00
Claude Paroz
21aec54296
Removed unnecessary registration of psycopg2 unicode extensions on Python 3
2016-08-15 20:57:57 +02:00
Daniel Wiesmann
89f17e7caf
Fixed #27014 -- Fixed annotations with database functions on PostGIS.
...
Thanks Sean Mc Allister for providing a test.
2016-08-15 14:23:10 -04:00
Chris Jerdonek
48ede58971
Fixed #27057 -- Made setup_test_environment() store saved settings in one place.
2016-08-15 13:53:06 -04:00
Curtis Maloney
d7e0cf04b7
Used all() and a generator for PermissionsMixin.has_perms().
2016-08-13 08:46:51 -04:00
Tim Graham
ba749f8f87
Refs #13408 -- Removed obsolete code/comments from {% for %} unpacking deprecation.
2016-08-13 08:45:41 -04:00
Chris Jerdonek
5890b1613c
Fixed #27008 -- Added --debug-mode option to DiscoverRunner.
2016-08-12 20:43:17 -04:00
Akshesh
6e07ec3f65
Fixed #27030 -- Added contrib.postgres.indexes.GinIndex.
2016-08-12 18:37:03 -04:00
Akshesh
236baa0f0e
Refs #27030 -- Added BtreeGinExtension operation.
2016-08-12 18:37:00 -04:00
Akshesh
2f19306a12
Refs #27030 -- Added index type introspection on PostgreSQL.
2016-08-12 16:58:40 -04:00
Michael Schwarz
72d541b61c
Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments.
...
The fallback logic which allows non-UTF-8 encoded files to be passed to
attach_file() even when a `text/*` mime type has been specified is
moved to attach(). Both functions now fall back to a content type of
`application/octet-stream`.
A side effect is that a file's content is decoded in memory instead of
opening it in text mode and reading it into a string.
Some mimetype-related logic in _create_attachment() has become
obsolete as the code moved from attach_file() to attach() already
handles this.
2016-08-12 16:35:09 -04:00
Akshesh
311a8e8d50
Fixed #20888 -- Added support for column order in class-based indexes.
2016-08-12 15:52:16 -04:00
Jon Dufresne
6b842c5998
Made BoundField.initial use cached_property.
...
Follow up to fab46ce6f5
.
2016-08-12 12:43:24 -07:00
Jon Dufresne
fab46ce6f5
Fixed #27037 -- Prevented required attribute on ClearableFileInput when initial data exists.
2016-08-12 13:59:01 -04:00
Akshesh
f842d1011c
Refs #20888 -- Added index order introspection.
2016-08-12 11:51:09 -04:00
Stanislav Karpov
b387189d86
Fixed #26919 -- Added the action form's media in the changelist view.
2016-08-11 19:35:31 -04:00
Claude Paroz
5fb22b4d4c
Fixed #27034 -- Made makemessages independent of USE_I18N
...
Thanks Tim Graham for the review.
2016-08-11 21:16:19 +02:00
Akshesh
324c1b432a
Fixed #24442 -- Improved SchemaEditor's index name truncation.
2016-08-11 14:36:31 -04:00
Ryan P Kilby
7aeb7390fc
Fixed #26891 -- Fixed lookup registration for ForeignObject.
2016-08-11 14:16:48 -04:00
Tim Graham
ff0a5aff4f
Fixed #27046 -- Supported IPv6-formatted IPv4 addresses in host validation.
...
Thanks LaMont Jones for the report and patch.
2016-08-11 13:54:39 -04:00
Tim Graham
e2dfa81ff7
Refs #18682 -- Edited explanation in stale content type deletion.
...
Follow up to 8db889eaf7
.
2016-08-10 21:19:09 -04:00
Ed Morley
7399fee6c3
Refs #26947 -- Added a deployment system check for SECURE_HSTS_PRELOAD.
2016-08-10 20:31:01 -04:00
Ed Morley
3c2447dd13
Fixed #26947 -- Added an option to enable the HSTS header preload directive.
2016-08-10 20:23:54 -04:00
Chris Jerdonek
7f9fd42b93
Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG.
2016-08-10 16:24:41 -04:00
Andrew Nester
4591cf3fd8
Fixed #26909 -- Allowed UserAttributeSimilarityValidator to validate against model properties.
2016-08-10 15:08:06 -04:00
Andrew Nester
f5c6295797
Fixed #26844 -- Made formset's validate_min validation ignore empty forms.
2016-08-10 13:03:04 -04:00
Tim Graham
1e32e1cc95
Fixed #26973 -- Fixed views.static.serve() crash with show_indexes enabled.
2016-08-10 11:27:03 -04:00
jordij
0814566bf1
Fixed #26960 -- Added PasswordResetConfirmView option to automatically log in after a reset.
2016-08-10 10:23:16 -04:00
Olexander Yermakov
975a76a964
Fixed #26951 -- Allowed AuthenticationForm to work with a username of 0.
2016-08-10 09:44:48 -04:00
Marcin Nowak
74bb013cc1
Fixed #26905 -- Allowed using MultiValueDict-like objects as form data.
2016-08-09 19:46:24 -04:00
Chris Jerdonek
a3a5ef4d0e
Fixed #27035 -- Eased changing settings.DEBUG for DiscoverRunner.
2016-08-09 13:40:29 -04:00
Chris Sinchok
ac1975b18b
Fixed #13809 -- Made FieldFile.open() respect its mode argument.
2016-08-09 12:53:18 -04:00
Claude Paroz
ade681b9ad
Unified SpatiaLite spelling
2016-08-09 18:46:28 +02:00
Sergei Maertens
0a5910684a
Renamed a camel case variable in the cycle template tag.
2016-08-09 09:42:27 -04:00
Alexander Schrijver
3ae3a1f9fa
Fixed #26830 -- Prevented the 'with' templatetag from resetting the cycle variable to its initial state.
2016-08-09 09:05:17 -04:00
Antoine Fontaine
004ba05bca
Fixed #27036 -- Made locmem email backend's send_messages() accept generators.
2016-08-08 20:13:29 -04:00
Claude Paroz
a6baada7bd
Fixed #26940 -- Removed makemessages from no_settings_commands whitelist
...
As makemessages uses several settings for proper run (FILE_CHARSET,
LOCALE_PATHS, MEDIA_ROOT, and STATIC_ROOT), we should require settings
configuration for this command.
2016-08-08 19:52:57 +02:00
Alex Hill
74105b2636
Fixed #27002 -- Prevented double query when rendering ModelChoiceField.
2016-08-08 13:41:05 -04:00
Adam Zapletal
887f3d3219
Fixed #26764 -- Fixed Session.cycle_key() crash on unaccessed session.
2016-08-08 13:01:25 -04:00
Simon Charette
b8e6e1b43b
Fixed #26500 -- Added SKIP LOCKED support to select_for_update().
...
Thanks Tim for the review.
2016-08-08 12:01:43 -04:00
Johannes Dollinger
46509cf13d
Moved EmpytResultSet to django.core.exceptions.
...
This removes the need for some inner imports.
2016-08-08 10:43:34 -04:00
Johannes Dollinger
c002a0d39f
Fixed #26517 -- Fixed ExpressionWrapper with empty queryset.
2016-08-08 10:43:33 -04:00
Johannes Dollinger
1410616e0e
Fixed #26433 -- Fixed Case expressions with empty When.
2016-08-08 10:43:33 -04:00
Chris Jerdonek
e7fb724cd2
Fixed #27032 -- Prevented setup_test_environment() from being called twice.
2016-08-08 10:40:29 -04:00
Claude Paroz
a7863c78b7
Fixed #27024 -- Prevented logging error with empty string as geometry widget value
...
Thanks Gavin Wahl for the report, and Tim Graham for the review.
2016-08-08 16:28:19 +02:00
Adam Zapletal
2a11d2d7a7
Fixed #27028 -- Clarified failed parallel tests message.
2016-08-08 09:24:14 -04:00
Sjoerd Job Postmus
3246d2b4bb
Fixed #27026 -- Fixed state initialization of bulk_create() objects if can_return_ids_from_bulk_insert.
2016-08-06 10:24:57 -04:00
Ben Demboski
fc8f097117
Fixed #27027 -- Restored Client.force_login() defaulting to the first auth backend.
2016-08-06 08:41:41 -04:00
Claude Paroz
3569ba0333
Fixed #27015 -- Prevented HTML-invalid minlength/maxlength on hidden inputs
2016-08-06 10:22:17 +02:00
Akshesh
6a8372e6ec
Fixed #26808 -- Added Meta.indexes for class-based indexes.
...
* Added the index name to its deconstruction.
* Added indexes to sqlite3.schema._remake_table() so that indexes
aren't dropped when _remake_table() is called.
Thanks timgraham & MarkusH for review and advice.
2016-08-05 18:12:51 -04:00
Jarek Glowacki
d117567c7d
Fixed #27004 -- Made migrations consistency check ignore unapplied squashed migrations.
2016-08-05 18:01:55 -04:00
Chris Jerdonek
42f9d65107
Edited docs of test.utils.setup/teardown_test_environment().
2016-08-05 17:38:49 -04:00
Yoong Kang Lim
d30febb4e5
Fixed #26706 -- Made RelatedManager modification methods clear prefetch_related() cache.
2016-08-05 13:32:27 -04:00
Peter Inglesby
e139ef5741
Fixed #27023 -- Prevented possibility of shell loading ~/.pythonrc.py twice.
2016-08-05 12:09:45 -04:00
Ville Skyttä
a2fb2b3a1f
Fixed #27020 -- Used a context manager to close files.
2016-08-04 19:45:14 -04:00
Jon Dufresne
50e299dbfb
Fixed #26928 -- Changed forms' checked attribute to HTML5 boolean style.
2016-08-04 19:16:54 -04:00
Chris Jerdonek
ebed9ee8d5
Fixed #26981 -- Added DiscoverRunner.get_test_runner_kwargs().
2016-08-04 14:45:44 -04:00
Tim Graham
967aa7f6cc
Fixed #27010 -- Made Argon2PasswordHasher decode with ASCII.
...
The underlying hasher only generates strings containing ASCII
characters so this is merely a cosmetic change.
2016-08-04 10:57:37 -04:00
Claude Paroz
272eccf7ff
Fixed #26983 -- Fixed isnull filtering on ForeignKey with to_field
...
Thanks weidwonder for the report.
2016-08-04 16:05:21 +02:00
Tim Graham
5c63b3e5a7
Fixed #27005 -- Fixed crash if request.META[''CONTENT_LENGTH']=''.
2016-08-03 13:12:40 -04:00
Alex Hill
c5ebfda002
Fixed #27001 -- Fixed a query count regression in ModelChoiceField with RadioSelect.
2016-08-03 10:45:55 -04:00
Sergey Yurchenko
4e64e3bb6e
Fixed #26997 -- Fixed checks crash with empty Meta.default_permissions.
2016-08-03 09:14:01 -04:00
Tim Graham
ccd5a23fba
Fixed #27000 -- Removed BaseCommand.usage() per deprecation timeline (refs #19973 ).
2016-08-02 18:50:12 -04:00
Akshesh
b92c6b7d56
Refs #26709 -- Replaced Index.get_name() with set_name_with_model().
...
This removes the dependency of the Index class on its 'model'
attribute.
2016-08-02 14:21:41 -04:00
Chris Jerdonek
ef92ed530e
Fixed #26980 -- Added ParallelTestSuite.runner_class to aid subclassing.
2016-08-02 14:15:06 -04:00
Tim Graham
54afa960d1
Fixed #26988 -- Improved/clarified User.is_authenticated/anonymous compatibility.
...
Thanks marktranchant for the report and review.
2016-08-02 11:01:08 -04:00
Tim Graham
d95c669c29
Fixed #26991 -- Fixed a crash in MySQL where SQL_AUTO_IS_NULL doesn't return a result.
2016-08-02 10:52:31 -04:00
Chris Jerdonek
013ee21cf8
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease subclassing.
2016-08-01 16:15:41 -04:00
Adam Chainz
4b1c9708d6
Fixed #26966 -- Made MySQL backend skip defaults for JSON columns
...
Thanks mcgeeco for reporting, and claudep and timgraham for review.
2016-08-01 13:51:25 -04:00
Claude Paroz
374b6091ac
Pulled contrib translations from Transifex
...
Forward port f19cadd391
from stable/1.10.x
2016-08-01 19:47:19 +02:00
Claude Paroz
07290211ff
Pulled core Django translations from Transifex
...
Forward port 760f076786
from stable/1.10.x
2016-08-01 19:46:47 +02:00
Jon Dufresne
ac3aaaa740
Fixed #26927 -- Made subwidget iteration pass disabled and required attributes.
2016-08-01 10:36:17 -04:00
Tim Graham
aad46c3e37
Fixed #26930 -- Prevented makemigrations from accessing an empty database.
...
Thanks Liz Lemon for the report and investigation and
Claude Paroz for the test.
2016-08-01 07:57:12 -04:00
Claude Paroz
f530b4fdfc
Fixed #26972 -- Fixed is_collection definition in MapWidget initialization
2016-07-31 20:38:29 +02:00
Tim Graham
5fa4370543
Refs #25550 -- Corrected deprecation message for assigning M2M relations.
2016-07-30 20:50:09 -04:00
Tim Graham
4e86168290
Fixed #26970 -- Fixed crash with disabled ModelMultipleChoiceField.
2016-07-30 13:31:48 -04:00
Tomas Pazderka
b820b6108a
Fixed #26896 -- Allowed a lazy base_url for FileSystemStorage.
2016-07-29 14:13:54 -04:00
Sergey Fedoseev
4178488881
Refs #26657 -- Fixed a crash induced by invalid WKT returned by MySQL 5.7.5+.
2016-07-28 17:48:17 -04:00
Sergey Fedoseev
9031a4c13b
Fixed #26657 -- Made GeomValue omit SRID for MySQL.
...
This fixes some test failures on MySQL 5.7+.
2016-07-28 16:51:47 -04:00
Andrew Nester
0ba179194b
Fixed #26929 -- Deprecated extra_context parameter of contrib.auth.views.logout_then_login().
2016-07-28 11:57:02 -04:00
premanand lakshmanan
5da7e3f7fd
Fixed #26114 -- Fixed AlterModelTable.describe() if db_table is None.
2016-07-28 10:33:14 -04:00
Olexander Yermakov
68de48c963
Fixed #26949 -- Fixed crash of disabled forms.JSONField.
2016-07-27 08:14:14 -04:00