Permalink
Browse files

Fixed typo in Model.__reduce__

  • Loading branch information...
1 parent 60378d1 commit 2934b44ca1ffb0ba70dbd769501142ab21f5cbb4 Ask Solem committed Nov 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 redish/models.py
View
@@ -57,7 +57,7 @@ def __init__(self, manager=None, id=None, **fields):
dict.__init__(self, self.prepare_fields(fields))
def __reduce__(self):
- return (_unpickle_model, (self.__class__, id, fields), None)
+ return (_unpickle_model, (self.__class__, self.id, dict(self)), None)
def save(self):
"""Save this entry.

0 comments on commit 2934b44

Please sign in to comment.