We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c86cc commit 559550dCopy full SHA for 559550d
1 file changed
adapter/adapter.py
@@ -147,7 +147,7 @@ def get_fields(self):
147
148
def adapt(self, data=None):
149
meta = getattr(self, 'Meta', None)
150
- model_cls = getattr(meta, 'model', Struct)
+ model_cls = getattr(meta, 'model', dict)
151
obj = model_cls()
152
for field_name, field in self.fields.iteritems():
153
value = field.get_attribute(data or self.data)
0 commit comments