mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
[1.8.x] Refs #24591 -- Optimized cloning of ModelState objects.
Changed ModelState.clone() to create a deepcopy of self.fields.
This commit is contained in:
committed by
Tim Graham
parent
43f800a978
commit
516907540b
@@ -4,7 +4,8 @@ Django 1.8.1 release notes
|
||||
|
||||
*Under development*
|
||||
|
||||
Django 1.8.1 fixes several bugs in 1.8.
|
||||
Django 1.8.1 fixes several bugs in 1.8 and includes some optimizations in the
|
||||
migrations framework.
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
@@ -61,3 +62,11 @@ Bugfixes
|
||||
|
||||
* Fixed JavaScript path of ``contrib.admin``’s related field widget when using
|
||||
alternate static file storages (:ticket:`24655`).
|
||||
|
||||
Optimizations
|
||||
=============
|
||||
|
||||
* Changed ``ModelState`` to deepcopy fields instead of deconstructing and
|
||||
reconstructing (:ticket:`24591`). This speeds up the rendering of model
|
||||
states and reduces memory usage when running :djadmin:`manage.py migrate
|
||||
<migrate>`.
|
||||
|
||||
Reference in New Issue
Block a user