Remove metadata from parameter.todict (do not save in model)

This commit is contained in:
arnaud.morvan@camptocamp.com 2016-09-03 22:46:19 +02:00 committed by volaya
parent 2ad27b172e
commit ecb7b3a096

View File

@ -120,7 +120,9 @@ class Parameter(object):
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 == '':