module documentation
A Python "serializer". Doesn't do much serializing per se -- just converts to and from basic Python data types (lists, dicts, strings, etc.). Useful as a basis for other serializers.
Class |
|
Serialize a QuerySet to basic Python objects. |
Function |
|
Deserialize simple Python objects back into Django ORM instances. |
Function | _get |
Look up a model from an "app_label.model_name" string. |
def Deserializer(object_list, *, using=DEFAULT_DB_ALIAS, ignorenonexistent=False, **options):
(source)
¶
Deserialize simple Python objects back into Django ORM instances. It's expected that you pass the Python objects themselves (instead of a stream or a string) to the constructor