def __reduce__(self):
    "\n        Provide pickling support. Normally, this just dispatches to Python's\n        standard handling. However, for models with deferred field loading, we\n        need to do things manually, as they're dynamically created classes and\n        only module-level classes can be pickled by the default path.\n        "
    data = self.__dict__
    deferred_fields = [f for f in self._meta.fields if isinstance(self.__class__.__dict__.get(f.attname), DeferredAttribute)]
    model = self._meta.proxy_for_model
    return (model_unpickle, (model, deferred_fields), data)
Provide pickling support. Normally, this just dispatches to Python's
standard handling. However, for models with deferred field loading, we
need to do things manually, as they're dynamically created classes and
only module-level classes can be pickled by the default path.
def __reduce__(self):
    "\n        Provide pickling support. Normally, this just dispatches to Python's\n        standard handling. However, for models with deferred field loading, we\n        need to do things manually, as they're dynamically created classes and\n        only module-level classes can be pickled by the default path.\n        "
    data = self.__dict__
    deferred_fields = [f for f in self._meta.fields if isinstance(self.__class__.__dict__.get(f.attname), DeferredAttribute)]
    model = self._meta.proxy_for_model
    return (model_unpickle, (model, deferred_fields), data)