#34822: Provide migration serializer for `_lru_cache_wrapper`
-------------------------------------+-------------------------------------
Reporter: Natalia Bidart | Owner: Nick Pope
Type: New feature | Status: closed
Component: Migrations | Version: dev
Severity: Normal | Resolution: fixed
Keywords: serializer | Triage Stage: Ready for
functools cache | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia <124304+nessita@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f92e68c30a0d38d25486e3f3cfabe5dfb5961ef7" f92e68c3]:
{{{
#!CommitTicketReference repository=""
revision="f92e68c30a0d38d25486e3f3cfabe5dfb5961ef7"
Fixed #34822 -- Added support for serializing functions decorated with
functools.lru_cache in migrations.
`@functools.cache` and `@functools.lru_cache` return an object of type
`functools._lru_cache_wrapper` which prevented the migrations serializer
from
working. Simply using the existing `FunctionTypeSerializer` for this
additional
type works as expected.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34822#comment:8>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018a90040a4e-bde407c0-8a4c-497e-bf58-bd1899db7d2d-000000%40eu-central-1.amazonses.com.