Skip to content

Commit

Permalink
Remove metadata from parameter.todict (do not save in model)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan authored and volaya committed Oct 5, 2016
1 parent 2ad27b1 commit ecb7b3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/core/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def typeName(self):
return self.__class__.__name__.replace('Parameter', '').lower()

def todict(self):
return self.__dict__
o = self.__dict__
del o['metadata']
return o

def tr(self, string, context=''):
if context == '':
Expand Down

0 comments on commit ecb7b3a

Please sign in to comment.