Dynamic attributes like .thumbnail
from StdImageField
may not be fully attached after .save()
or .create()
, causing pickling errors when caching. Use refresh_from_db()
to reload the instance and ensures these attributes are correctly bound.