[models] Support __setitem__ in CustomFields

This commit is contained in:
derrod 2020-05-09 11:04:57 +02:00
parent 8328a8ebaa
commit 8ae0fff1d7

View file

@ -637,6 +637,9 @@ class CustomFields: # this could probably be replaced with just a dict
def __getitem__(self, item):
return self._dict.get(item, None)
def __setitem__(self, key, value):
self._dict[key] = value
def __str__(self):
return str(self._dict)