Skip to main content

deconstructible

Class decorator that allows the decorated class to be serialized by the migrations subsystem.

def deconstructible(
*args: any,
path: string = None
) - > function | type

Class decorator that allows the decorated class to be serialized by the migrations subsystem.

Parameters

NameTypeDescription
*argsanyVariable positional arguments used when the decorator is applied without parentheses or to pass the class being decorated.
pathstring = NoneThe explicit Python import path to the class, used to override automatic module and class name detection during serialization.

Returns

TypeDescription
`functiontype`