Skip to content

Commit ecb7b3a

Browse files
arnaud-morvanvolaya
authored andcommittedOct 5, 2016
Remove metadata from parameter.todict (do not save in model)
1 parent 2ad27b1 commit ecb7b3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/core/parameters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ def typeName(self):
120120
return self.__class__.__name__.replace('Parameter', '').lower()
121121

122122
def todict(self):
123-
return self.__dict__
123+
o = self.__dict__
124+
del o['metadata']
125+
return o
124126

125127
def tr(self, string, context=''):
126128
if context == '':

0 commit comments

Comments
 (0)
Please sign in to comment.