mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"
This reverts commit f36151ed16
.
Adding kwargs to deconstructed objects does not achieve useful
forward-compatibility in general, since additional arguments are silently
dropped rather than having their intended effect. In fact, it can make the
failure more difficult to diagnose. Thanks Shai Berger for discussion.
This commit is contained in:
parent
f36151ed16
commit
bcb693ebd4
9 changed files with 22 additions and 29 deletions
|
@ -77,7 +77,3 @@ Bugfixes
|
|||
|
||||
* Fixed a crash in migrations when deleting a field that is part of a
|
||||
``index/unique_together`` constraint (:ticket:`23794`).
|
||||
|
||||
* Made the initializers of deconstructible classes, such as migration
|
||||
operations and validators, accept kwargs for forwards compatibility
|
||||
(:ticket:`23892`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue