mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #26122 -- Fixed copying a LazyObject
Shallow copying of `django.utils.functional.LazyObject` or its subclasses has
been broken in a couple of different ways in the past, most recently due to
35355a4
.
This commit is contained in:
parent
cfda1fa3f8
commit
13023ba867
4 changed files with 104 additions and 7 deletions
|
@ -31,3 +31,6 @@ Bugfixes
|
|||
|
||||
* Fixed a crash when using a reverse ``OneToOneField`` in
|
||||
``ModelAdmin.readonly_fields`` (:ticket:`26060`).
|
||||
|
||||
* Fixed a regression in Django 1.8.5 that broke copying a ``SimpleLazyObject``
|
||||
with ``copy.copy()`` (:ticket:`26122`).
|
||||
|
|
|
@ -82,3 +82,6 @@ Bugfixes
|
|||
origin from the node via ``Node.token.source[0]``. This was an undocumented,
|
||||
private API. The origin is now available directly on each node using the
|
||||
``Node.origin`` attribute (:ticket:`25848`).
|
||||
|
||||
* Fixed a regression in Django 1.8.5 that broke copying a ``SimpleLazyObject``
|
||||
with ``copy.copy()`` (:ticket:`26122`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue