fix: address pr comments
This commit is contained in:
parent
56ac8030b8
commit
c3d8b14a3d
|
|
@ -1,5 +1,5 @@
|
|||
import copy
|
||||
from functools import lru_cache
|
||||
import functools
|
||||
|
||||
from rest_framework import serializers
|
||||
|
||||
|
|
@ -7,8 +7,8 @@ from .features import ChangeLogMessageSerializer
|
|||
|
||||
__all__ = (
|
||||
'BulkOperationSerializer',
|
||||
'BulkUpdateSchemaMixin',
|
||||
'BulkPartialUpdateSchemaMixin',
|
||||
'BulkUpdateSchemaMixin',
|
||||
'get_bulk_update_serializer_class'
|
||||
)
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ class BulkPartialUpdateSchemaMixin(BulkUpdateSchemaMixin):
|
|||
return fields
|
||||
|
||||
|
||||
@lru_cache(maxsize=None)
|
||||
@functools.cache
|
||||
def get_bulk_update_serializer_class(serializer_class, *, partial=False):
|
||||
"""
|
||||
Return a schema-only serializer for bulk PUT/PATCH requests.
|
||||
|
|
|
|||
Loading…
Reference in New Issue