emmett
emmett copied to clipboard
Bug with as_dict TypeError: 'NoneType' object is not callable
Hi @gi0baro
in shell:
>>> row = Provincia.create(nombre='Prueba 01')
>>> row
<Row {'id': 24, 'errors': {}}>
>>> row.id
24
>>> row.id.as_dict()
Traceback (most recent call last):
File "<console>", line 1, in <module>
TypeError: 'NoneType' object is not callable
>>> row.id.nombre
'Prueba 01'
>>> row.id.as_dict()
{'id': 24, 'nombre': 'Prueba 01'}
Jose
@gi0baro Anyone tackled this bug? Can I work on a fix? cc @josejachuf
@gaytomycode this was reported before 2.0, I'm not sure if still applicable. It needs to be verified.