Skip to content

Commit

Permalink
fixed del of missing key, thanks Lazaro Aulan
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Aug 12, 2017
1 parent c995fd7 commit 455f421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydal/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2943,7 +2943,7 @@ def render(self, i=None, fields=None):

def __getstate__(self):
ret = self.__dict__.copy()
del ret['fields']
ret.pop('fields', None)
return ret

def _restore_fields(self, fields):
Expand Down

0 comments on commit 455f421

Please sign in to comment.