summaryrefslogtreecommitdiff
path: root/boto/dynamodb/item.py
diff options
context:
space:
mode:
Diffstat (limited to 'boto/dynamodb/item.py')
-rw-r--r--boto/dynamodb/item.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/boto/dynamodb/item.py b/boto/dynamodb/item.py
index 4d4abda3..b2b444d7 100644
--- a/boto/dynamodb/item.py
+++ b/boto/dynamodb/item.py
@@ -194,3 +194,9 @@ class Item(dict):
if self._updates is not None:
self.delete_attribute(key)
dict.__delitem__(self, key)
+
+ # Allow this item to still be pickled
+ def __getstate__(self):
+ return self.__dict__
+ def __setstate__(self, d):
+ self.__dict__.update(d)