Michael Sanders
2668418d99
[1.11.x] Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().
...
A race condition happened when the object didn't already exist and
another process/thread created the object before update_or_create()
did and then attempted to update the object, also before update_or_create()
saved the object. The update by the other process/thread could be lost.
Backport of 271542dad1
from master
2018-08-02 17:28:23 -04:00
Adam Donaghy
56c5c1599a
[1.11.x] Fixed #28462 -- Decreased memory usage with ModelAdmin.list_editable.
...
Regression in 917cc288a3
.
Backport of b18650a263
from master
2018-06-07 10:15:56 -04:00
Paul Donohue
979253fce9
[1.11.x] Fixed #29296 -- Fixed crashes in admindocs when a view is a callable object.
...
Backport of 33a0b7ac81
from master
2018-04-12 13:28:29 -04:00
Jeremy Bowman
8f76939f54
[1.11.x] Fixed #29193 -- Prevented unnecessary foreign key drops when altering a unique field.
...
Stopped dropping and recreating foreign key constraints on other fields
in the same table as the one which is actually being altered in an
AlterField operation.
Regression in c3e0adcad8
.
Backport of ee17bb8a67
from master
2018-04-11 23:24:42 -04:00
Tomer Chachamu
e98ae4fe6b
[1.11.x] Fixed #28722 -- Made QuerySet.reverse() affect nulls_first/nulls_last.
...
Backport of 21a3a29dc9
from master
2017-10-21 21:03:52 -04:00
Zach Liu
f8e0557b01
[1.11.x] Fixed #28550 -- Restored contrib.auth's login() and logout() views' respect of positional arguments.
...
Regression in 78963495d0
.
2017-09-03 12:05:18 -04:00
Bo Marchman
8d66bffbae
[1.11.x] Fixed #26522 -- Fixed a nondeterministic AssertionError in QuerySet combining.
...
Thanks Andrew Brown for the test case.
Backport of 9bbb6e2d25
from master
2017-09-01 15:49:33 -04:00
Tim Graham
20c03399d8
[1.11.x] Fixed #27998 , #28543 -- Restored logging of ManyToManyField changes in admin's object history.
...
And prevented ManyToManyField initial data in model forms from being affected
by subsequent model changes.
Regression in 56a55566a791a11420fe96f745b7489e756fc931.
Partial backport of e5bd585c6e
and
15b465c584
from master
2017-08-31 09:41:04 -04:00
Rachel Tobin
801b6fb32e
[1.11.x] Fixed #28418 -- Fixed queryset crash when using a GenericRelation to a proxy model.
...
Backport of f9e5f9ae9f
from master
2017-07-21 18:26:03 -04:00
Michiel Beijen
ec24108008
[1.11.x] Pointed Dive into Python links to python3 site
...
Backport of 48028c6f9a
from master
2017-05-20 21:46:18 -04:00
Taavi Teska
c3d3aeeafa
[1.11.x] Fixed #27947 -- Doc'd that model Field.error_messages often don't propagate to forms.
...
Backport of 5dbf1c4b23
from master
2017-04-10 14:24:55 -04:00
Stefano Rivera
4b00657f24
[1.11.x] Removed unexpected initial attribute in data migration examples.
...
Inadvertently added in db97a88495
.
Backport of 899c42cc8e
from master
2017-03-25 16:00:10 -04: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
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
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
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
Sebastian Spiegel
8b734d2f99
Fixed #27432 -- Made app_label arguments limit showmigrations --plan output.
2017-01-06 19:50:31 -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
Illia Volochii
d20e046bbd
Fixed #27653 -- Added Ukrainian locale formats.
2016-12-29 07:31:32 -05:00
Anton Samarchyan
5cf4894836
Fixed #27628 -- Fixed unarchiving a file without permission data.
2016-12-28 19:14:58 -05:00
Josef Rousek
aaecf038ca
Fixed #27370 -- Prevented Select widget from using 'required' with a non-empty first value.
2016-12-28 10:45:22 -05:00
Aleksi Häkli
f6671c5d78
Fixed #27647 -- Fixed Windows segmentation fault in runserver autoreload.
2016-12-28 08:04:09 -05:00
Henry Dang
6af23a4521
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
2016-12-19 08:33:46 -05:00
InvalidInterrupt
98359109eb
Fixed #17002 -- Allowed using a ManyToManyField through model that inherits another.
2016-12-07 17:50:51 -05:00
Keda87
794b7d8033
Refs #27546 -- Tested some __repr__() methods.
2016-12-01 08:09:38 -05:00
Brandon Chinn
6573274161
Refs #27003 -- Fixed SimpleArrayField crash on converted values.
2016-11-15 18:10:45 -05:00
Jonatas CD
9da45ff352
Fixed #26985 -- Doc'd that ForeignKey.to_field reference must be unique.
2016-11-15 11:09:23 -05:00
Ramin Farajpour Cami
0a63ef3f61
Fixed #27463 -- Fixed E741 flake8 warnings.
2016-11-14 17:40:28 -05:00
Joachim Jablon
fd78fb82d6
Fixed #27138 -- Restored pre-Python 3.6 behavior of localtime() and make_naive() on Python 3.6.
...
Reverted test changes in a7a7ecd2b0
and
e43ea36b76
(refs #27025 ).
2016-11-07 19:07:18 -05:00
Erik Romijn
29563cfb80
Added Emmanuelle Delescolle to AUTHORS.
...
(Fixed #23604 in 2014 and was not added before.)
2016-11-06 10:18:36 +01:00
Adam Malinowski
37809b891e
Fixed #27346 -- Stopped setting the Content-Length header in ConditionalGetMiddleware.
2016-11-05 22:24:54 +01:00
Frank Wiles
a09c058918
Fixed import typos in the docs.
2016-09-29 12:06:52 -04:00
Ed Morley
65ec8fa8ca
Fixed #20892 -- Allowed configuring memcached client using OPTIONS.
...
Previously, the MemcachedCache backend ignored `OPTIONS` and
PyLibMCCache used them to set pylibmc behaviors. Both backends now
pass `OPTIONS` as keyword arguments to the client constructors.
2016-08-31 12:50:14 -04:00
Mattias Loverot
2315114090
Fixed #27067 -- Deprecated string_concat() in favor of format_lazy().
2016-08-25 16:12:40 -04:00
Helen Sherwood-Taylor
bc1e2d8e8e
Fixed #27018 -- Fixed admindocs crash with a view in a class.
...
Generated correct admindocs URLs on Python 3. URLs generate 404s on
Python 2, as in older versions of Django.
2016-08-20 10:01:57 -04:00
Matthew Wilkes
4f138fe5a4
Fixed #22288 -- Fixed F() expressions with the __range lookup.
2016-08-19 13:40:56 -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
jordij
0814566bf1
Fixed #26960 -- Added PasswordResetConfirmView option to automatically log in after a reset.
2016-08-10 10:23:16 -04:00
Chris Jerdonek
013ee21cf8
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease subclassing.
2016-08-01 16:15:41 -04:00
Marc-Aurèle Brothier
f8bfa80680
Fixed #26868 -- Changed MySQL version detection to use a query.
...
Workaround a bug with MariaDB and MySQL native client not stripping the
`5.5.5-` prefix.
2016-07-15 10:05:03 -04:00
Jensen Cochran
d44afd8892
Fixed #26804 -- Fixed a race condition in QuerySet.update_or_create().
2016-07-14 12:10:19 -04:00
wim glenn
5ebebd1159
Fixed #26707 -- Added QueryDict.fromkeys()
2016-06-06 08:54:25 -04:00
Corey Farwell
bed2055506
Added Jack Moffitt to AUTHORS for 3df7266056
.
2016-06-03 17:06:20 -04:00
Brad Melin
f6517a5335
Fixed #26672 -- Fixed HStoreField to raise ValidationError instead of crashing on non-dict JSON input.
2016-06-02 16:28:01 -04:00
Vytis Banaitis
f1e408ff40
Fixed #25044 -- Fixed migrations for renaming ManyToManyField's through model.
2016-05-30 10:17:45 -04:00
Aron Podrigal
85ef98dc6e
Fixed #24305 -- Allowed overriding fields on abstract models.
...
Fields inherited from abstract base classes may be overridden like
any other Python attribute. Inheriting from multiple models/classes
with the same attribute name will follow the MRO.
2016-05-16 07:32:21 -04:00
David Sanders
32dc8c0beb
Added David Sanders to AUTHORS
2016-05-13 10:16:05 -04:00
Jarek Glowacki
509379a161
Fixed #25945 , #26292 -- Refactored MigrationLoader.build_graph()
2016-05-08 13:53:26 +02:00
Sergei Maertens
ec009ef1d8
Fixed #25986 -- Fixed crash sending email with non-ASCII in local part of the address.
...
On Python 3, sending emails failed for addresses containing non-ASCII
characters due to the usage of the legacy Python email.utils.formataddr()
function. This is fixed by using the proper Address object on Python 3.
2016-05-06 14:34:11 -04:00
Dan Stephenson
1206eea11e
Fixed #26558 -- Removed need for request context processor on admin login page.
2016-05-04 09:43:24 -04:00