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
| Name | Type | Description |
|---|---|---|
| *args | any | Variable positional arguments used when the decorator is applied without parentheses or to pass the class being decorated. |
| path | string = None | The explicit Python import path to the class, used to override automatic module and class name detection during serialization. |
Returns
| Type | Description |
|---|---|
| `function | type` |