mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[models] Support __setitem__ in CustomFields
This commit is contained in:
parent
8328a8ebaa
commit
8ae0fff1d7
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue