Claude Paroz
145f6c3ed6
Refs #27622 -- Fixed a regression in JSON content-type detection
...
A JSON Content-Type can contain further content, like charset for example.
2017-03-07 16:44:15 +01:00
Tim Graham
784a53beef
Reverted "Fixed #27878 , refs #23919 -- Used python3 shebangs."
...
This reverts commit 4cffa9a1ff
.
2017-03-07 10:10:32 -05:00
Bo Marchman
9bbb6e2d25
Fixed #26522 -- Fixed a nondeterministic AssertionError in QuerySet combining.
...
Thanks Andrew Brown for the test case.
2017-03-06 13:40:17 -05:00
Anton Samarchyan
e88d2dfcf4
Fixed #27475 -- Fixed NonExistentTimeError crash in ModelAdmin.date_hierarchy.
2017-03-06 12:01:31 -05:00
Claude Paroz
8346680e1c
Refs #27795 -- Removed unneeded force_text calls
...
Thanks Tim Graham for the review.
2017-03-04 18:18:21 +01:00
Anton Samarchyan
86de930f41
Refs #27656 -- Updated remaining docstring verbs according to PEP 257.
2017-03-04 10:02:06 -05:00
Tim Graham
6ae1b04fb5
Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.
2017-03-04 09:04:16 -05:00
Anton Samarchyan
711123e1cd
Refs #27656 -- Updated django.views docstring verbs according to PEP 257.
2017-03-03 17:05:42 -05:00
Tim Graham
b23d264046
Fixed #27887 -- Fixed URLs check crash with namespaced URLs inside non-namespaced URLs.
2017-03-03 10:52:20 -05:00
Mariusz Felisiak
6b47431aaf
Refs #27860 -- Simplified deleting indexes on PostgreSQL using "IF EXISTS".
2017-03-03 10:50:34 -05:00
David Szotten
d82ee32aac
Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to 'pk'.
2017-03-02 10:25:05 -05:00
Grzegorz Tężycki
fede65260a
Fixed #26911 -- Removed NoReverseMatch silencing in RedirectView.
2017-03-01 15:56:39 -05:00
Tim Graham
29ea9714ee
Removed PostgreSQL version detection for psycopg2 < 2.0.12.
2017-03-01 13:17:34 -05:00
Matthew Schinckel
f48bc7c3db
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.
2017-03-01 07:56:37 -05:00
Alexey Opalev
9f21e35100
Fixed #27842 -- Added protocol kwarg to GenericSitemap.__init__().
2017-02-28 11:48:07 -05:00
Blake Griffith
81957086c1
Clarified HMAC usage in signing.dumps() docstring.
2017-02-28 09:35:41 -05:00
Anton Samarchyan
60e52a047e
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
2017-02-28 09:17:27 -05:00
Tim Graham
d6e26e5b7c
Removed obsolete references to form_for_instance().
2017-02-28 07:37:25 -05:00
Asif Saifuddin Auvi
5f3a689f71
Imported django.http classes instead of django.http.
2017-02-27 14:47:11 -05:00
Tim Graham
6b00af5014
Refs #27802 -- Corrected BaseDatabaseOperations.datetime_extract/trunc_sql() docstrings.
2017-02-27 10:07:24 -05:00
Tim Graham
82026d61a3
Refs #27843 -- Fixed 'invalid escape sequence' warning in truncate_name().
2017-02-27 09:28:02 -05:00
François Freitag
fba4f831bc
Fixed #27176 -- Raised an exception for reentrant calls to apps.populate().
...
Thanks to Aymeric Augustin, Harry Percival, and Tim Graham.
2017-02-25 15:56:24 -05:00
chillaranand
e4025563ea
Fixed #27836 -- Allowed FileSystemStorage.delete() to remove directories.
2017-02-24 16:02:33 -05:00
Chris Lamb
339d526d55
Fixed #27873 -- Fixed crash in setup_test_environment() if ALLOWED_HOSTS is a tuple.
...
Regression in 17e661641d
2017-02-24 13:58:56 -05:00
Tim Graham
c31e7ab5a4
Refs #25187 -- Fixed AuthBackend.authenticate() compatibility for signatures that accept a request kwarg.
2017-02-24 10:15:41 -05:00
Chris Lamb
8d4885ede5
Fixed #27874 -- Fixed URL namespace warning (urls.W005) for nested namespaces.
2017-02-24 10:13:48 -05:00
Pavlo Kapyshin
b6fbf3e8e5
Fixed #27879 -- Fixed crash if enclosures aren't provided to Atom1Feed.add_item().
...
Regression in 75cf9b5ac0
2017-02-24 09:46:31 -05:00
Ian Foote
508b5debfb
Refs #11964 -- Made Q objects deconstructible.
2017-02-23 20:47:48 -05:00
Ian Foote
19b2dfd1bf
Refs #11964 , #26167 -- Made Expressions deconstructible.
2017-02-23 20:44:06 -05:00
Vytis Banaitis
3dcc351691
Refs #23919 -- Used yield from.
2017-02-23 20:06:01 -05:00
Chris Lamb
4cffa9a1ff
Fixed #27878 , refs #23919 -- Used python3 shebangs.
2017-02-23 13:41:10 -05:00
Claude Paroz
30c984b3f9
Fixed #27868 -- Filtered locale path subdirectories
...
Thanks Tim Graham for the review.
2017-02-23 09:12:20 +01:00
Claude Paroz
e6065c7b83
Fixed #25619 -- Made runserver serve with HTTP 1.1 protocol
...
Thanks Tim Graham for the review.
2017-02-23 09:04:53 +01:00
Anton Samarchyan
610876661e
Fixed typos in code comments.
2017-02-22 10:25:42 -05:00
Manatsawin Hanmongkolchai
46e51632dc
Updated Thai (th) locale formats.
2017-02-22 10:19:02 -05:00
Asif Saifuddin Auvi
9d984f8806
Updated Bengali (bn) locale formats.
2017-02-22 09:27:53 -05:00
Phil Bazun
cc5c1b7568
Fixed #27870 -- Cleaned up ManagementUtility.autocomplete().
2017-02-22 09:15:50 -05:00
Tim Graham
0a0c24581e
Refs #26285 -- Removed postgresql's unused DatabaseOperations.fulltext_search_sql().
...
Should have been removed in 5139832398
.
2017-02-21 13:10:24 -05:00
Vytis Banaitis
4045fd56cb
Fixed #27856 -- Improved accuracy of date subtraction on PostgreSQL.
...
Accuracy was incorrect when dates differ by a month or more.
2017-02-21 12:06:16 -05:00
Anton Samarchyan
5a6f70b428
Refs #27656 -- Updated django.core docstring verbs according to PEP 257.
2017-02-21 11:58:42 -05:00
Anton Samarchyan
3eb679a869
Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.
2017-02-20 19:57:33 -05:00
Tim Graham
afcf44c101
Refs #23151 -- Removed RegexField's unused error_message parameter.
...
Should have been removed in b6ea1961eb
.
2017-02-20 19:09:09 -05:00
Collin Anderson
fb7e0e01af
Fixed #27850 -- Made RelatedFieldWidgetWrapper call render() of the wrapped widget.
2017-02-20 08:48:03 -05:00
Alexey Rogachev
c743af82cf
Fixed typo in DurationField's docstring.
2017-02-20 08:44:05 -05:00
Tim Graham
75f0070a54
Fixed #27308 -- Fixed BytesWarnings in the test suite.
2017-02-17 16:04:45 -05:00
Anton Samarchyan
4696078832
Refs #27656 -- Updated django.template/tag docstring verbs according to PEP 257.
2017-02-17 11:29:38 -05:00
Mariusz Felisiak
b935190572
Fixed #27843 -- Fixed truncate_name() when the name contains a username.
2017-02-17 09:24:55 -05:00
Vytis Banaitis
d5088f838d
Fixed #27828 -- Fixed a crash when subtracting Integer/DurationField from DateField on Oracle/PostgreSQL.
2017-02-16 11:46:32 -05:00
Tim Graham
80493b0871
Fixed #27829 -- Deprecated settings.DEFAULT_CONTENT_TYPE.
2017-02-16 07:59:44 -05:00
Tim Graham
b008f7cc56
Fixed #27135 -- Made index introspection return Index.suffix.
2017-02-15 20:15:02 -05:00
Markus Holtermann
b9b35f9efa
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:35:04 +01:00
amalia
2f10216f84
Fixed #27820 -- Fixed RequestDataTooBig/TooManyFieldsSent crash.
2017-02-13 16:19:03 -05:00
Tim Graham
3f5a35d6e2
Added TransactionTestCase.multi_db instead of using getattr().
2017-02-13 08:46:00 -05:00
Anton Samarchyan
9718fa2e8a
Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.
2017-02-11 16:11:08 -05:00
Mads Jensen
fb5bd38e3b
Refs #26610 -- Added CIText mixin and CIChar/Email/TextField.
2017-02-11 07:16:35 -05:00
Tim Graham
fe2d288434
Fixed #27722 -- Reallowed using django.Template in {% include %}.
2017-02-11 06:51:57 -05:00
Tim Graham
0595bca221
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.
2017-02-11 06:34:59 -05:00
Tim Graham
7b6e42089c
Fixed #25978 -- Deprecated shorcuts.render_to_response().
2017-02-11 05:49:04 -05:00
Tim Graham
0166dd2f8c
Fixed #25524 -- Removed GISOperations.get_distance()'s handle_spheroid param.
2017-02-11 05:47:20 -05:00
Claude Paroz
d4b00c5c24
Removed WSGIServer.server_bind() identical to parent version
...
The method customization was removed in 2ca00faa91
.
2017-02-11 11:16:35 +01:00
ClairePhila
d26413113c
Refs #27148 -- Fixed UUIDField.to_python(None) crash.
...
Regression in 2f9861d823
.
2017-02-10 13:54:52 -05:00
ClairePhila
edad02af06
Allow UUIDField to be None when deserializing
2017-02-10 17:26:02 +01:00
Nadège Michel
bece837829
Fixed #20238 -- Added threading support to LiveServerTestCase.
2017-02-09 19:08:32 -05:00
Mikhail Nacharov
c4e2fc5d98
Fixed #22669 -- Fixed QuerySet.bulk_create() with empty model fields on Oracle.
2017-02-09 18:47:08 -05:00
Mariusz Felisiak
965f678a39
Fixed #25898 -- Made test database/user creation on Oracle reraise unexpected errors.
...
Thanks Shai Berger and Tim Graham for review.
2017-02-09 17:55:07 -05:00
François Freitag
e124d2da94
Fixed #26551 -- Fixed negated Q() queries that span relations.
...
Prevented queries from reusing trimmed joins.
2017-02-09 11:20:33 -05:00
Chronial
03281d8fe7
Fixed #26005 -- Fixed some percent decoding cases in uri_to_iri().
2017-02-09 09:22:00 -05:00
Tim Graham
500532c95d
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
2017-02-09 09:03:47 -05:00
Tim Graham
21f13ff5b3
Refs #23919 -- Removed an used block in ExceptionReporter.get_traceback_data().
...
The test from refs #20368 only runs this block on Python 2.
2017-02-09 09:03:28 -05:00
Mariusz Felisiak
1b96dbdad0
Fixed #27822 -- Replaced deprecated cx_Oracle types in DatabaseIntrospection.data_types_reverse.
2017-02-09 08:57:34 -05:00
Anton Samarchyan
b27166b769
Fixed #27356 -- Fixed ModelAdmin.lookup_allowed() for some nested relations.
2017-02-07 19:33:26 -05:00
Mariusz Felisiak
6b048b364c
Fixed #26903 -- Fixed __contains lookup for Date/DateTimeRangeField.
...
Thanks Mariusz Felisiak and Tim Graham for polishing the patch.
2017-02-07 12:46:18 -05:00
Mariusz Felisiak
0034e9af18
Fixed #5851 -- Allowed specifying different HTML attrs for SplitDateTimeWidget subwidgets.
...
Thanks Tim Graham and Nick Pope for review.
2017-02-07 11:33:37 -05:00
Claude Paroz
3a148f958d
Refs #27795 -- Removed force_text from the template layer
...
Thanks Tim Graham for the review.
2017-02-07 17:14:02 +01:00
Tim Graham
854f695014
Refs #27815 -- Reordered LoginView.get_form_kwargs().
2017-02-07 10:15:43 -05:00
Zoltan Gyarmati
41ba27fefd
Fixed #27815 -- Made LoginView pass the request kwarg to AuthenticationForm.
2017-02-07 08:54:21 -05:00
Claude Paroz
c651331b34
Converted usage of ugettext* functions to their gettext* aliases
...
Thanks Tim Graham for the review.
2017-02-07 09:04:04 +01:00
Tim Graham
4353640ea9
Fixed #27805 -- Fixed ClearableFileInput's "Clear" checkbox on model fields with a default.
2017-02-06 20:31:04 -05:00
Ryan O’Hara
7c4289d0b9
Fixed #27783 -- Switched VariableDoesNotExist.__str__() to repr() context.
...
Using __str__() and then repr'ing the result looks strange and can lead
to recursive rendering of forms.
2017-02-06 17:53:21 -05:00
Claude Paroz
2757209c9d
Refs #27795 -- Removed force_text from templatize function
2017-02-06 17:35:03 +01:00
Mariusz Felisiak
15c14f6f16
Fixed #27802 -- Unified return value of db backend datetime SQL methods.
2017-02-06 09:19:13 -05:00
Anton Samarchyan
5411821e3b
Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.
2017-02-04 16:39:28 -05:00
orf
b5393028bf
Fixed #27767 -- Added distinct argument to ArrayAgg.
2017-02-04 13:57:39 -05:00
Mads Jensen
86ae1d51ed
Refs #27546 -- Removed hardcoded class names in __repr__() methods.
2017-02-04 11:42:45 -05:00
Tim Graham
2d899ce16b
Refs #23919 -- Removed a Python 2 code path in force_text().
...
Reverted the obsolete fix and tests for refs #12302 .
2017-02-03 19:38:33 -05:00
Tim Graham
26619ad7b0
Removed an untested and broken branch in force_bytes() (refs #6353 ).
...
The new test crashed in the removed branch. It's unclear if the branch has
value since c6a2bd9b96
didn't include tests.
2017-02-03 19:36:53 -05:00
Tim Graham
4ee877a7b0
Used super() in DjangoUnicodeDecodeError.
2017-02-03 19:16:14 -05:00
Tim Graham
29f607927f
Fixed spelling of "nonexistent".
2017-02-03 08:01:45 -05:00
Claude Paroz
a21ec12409
Fixed #27803 -- Kept safe status of lazy safe strings in conditional_escape
2017-02-02 21:01:39 +01:00
Tim Graham
597bfcbf8b
Removed unused ExceptionReporter.format_exception() method.
...
Unused since its introduction in e7e4b8b0f7
.
2017-02-01 19:55:31 -05:00
Tim Graham
0205e04ce7
Removed ExceptionReporter support for string exceptions.
...
Reverted refs #6423 since raising string exceptions is prohibited
since Python 2.5.
2017-02-01 19:47:39 -05:00
Tim Graham
924af638e4
Fixed #27683 -- Made MySQL default to the read committed isolation level.
...
Thanks Shai Berger for test help and Adam Johnson for review.
2017-02-01 15:34:17 -05:00
Vytis Banaitis
8838d4dd49
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
2017-02-01 11:41:56 -05:00
Ling-Xiao Yang
0ec4dc91e0
Fixed #27661 -- Moved FileSystemFinder's ImproperlyConfigured exceptions to system checks.
...
Thanks Simon Charette, Mariusz Felisiak, Tim Graham, and Adam Johnson
for review.
2017-02-01 09:48:24 -05:00
Lex Berezhny
ac5f886c56
Fixed #27800 -- Fixed QuerySet.annotate(Length(...)).distinct() crash.
2017-01-31 18:45:55 -05:00
Vytis Banaitis
84126f2789
Refs #23919 -- Removed unneeded code in force_text().
...
Unneeded since 7b2f2e74ad
.
2017-01-31 18:31:17 -05:00
Jon Dufresne
6d8979f4c2
Fixed #27758 -- Reallowed AdvancedModelIterator pattern after template widget rendering.
2017-01-31 09:41:51 -05:00
Claude Paroz
3b2e28fc85
Used model_ngettext in two more places
2017-01-31 08:48:17 +01:00
Claude Paroz
ccfd1295f9
Refs #27795 -- Prevented SafeText from losing safe status on str()
...
This will allow to replace force_text() by str() in several places (as one of
the features of force_text is to keep the safe status).
2017-01-30 21:10:32 +01:00
Claude Paroz
52138b1fd0
Refs #23919 -- Removed usage of obsolete SafeBytes class
...
The class will be removed as part of #27753 .
Thanks Tim Graham for the review.
2017-01-30 15:04:45 +01:00