#24591: Copy ModelState.fields and ModelState.managers instead of cloning.
--------------------------------------+------------------------------------
Reporter: knbk | Owner: knbk
Type: Cleanup/optimization | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by knbk):
* status: new => assigned
Comment:
The last commit in !4460 stores the deconstructed state when initializing
the wrapper. I think that's the most comprehensive protection we can
offer, without a noticeable performance cost. We might issue a warning
instead of raising an exception in `__setattr__`: it is no longer an error
to change the field, it is simply useless.
--
Ticket URL: <https://code.djangoproject.com/ticket/24591#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.44d133d50cfc3cb9054e5bacdd090c7a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.