We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24483df commit e6ea3a5Copy full SHA for e6ea3a5
cla-backend/cla/models/dynamo_models.py
@@ -731,10 +731,17 @@ class PatchedUnicodeSetAttribute(UnicodeSetAttribute):
731
"""
732
def get_value(self, value):
733
# if self.attr_type not in value:
734
+ if not value:
735
+ return set()
736
if self.attr_type == 'SS' and 'L' in value:
737
value = {'SS':list(map(lambda x: x['S'], value['L']))}
738
super(PatchedUnicodeSetAttribute, self).get_value(value)
739
740
+ def deserialize(self, value):
741
742
743
+ return set(value)
744
+
745
class BaseModel(Model):
746
747
Base pynamodb model used for all CLA models.
0 commit comments