emmett icon indicating copy to clipboard operation
emmett copied to clipboard

Bug with as_dict TypeError: 'NoneType' object is not callable

Open josejachuf opened this issue 5 years ago • 2 comments

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

josejachuf avatar Jun 04 '19 20:06 josejachuf

@gi0baro Anyone tackled this bug? Can I work on a fix? cc @josejachuf

gaytomycode avatar Jan 15 '24 08:01 gaytomycode

@gaytomycode this was reported before 2.0, I'm not sure if still applicable. It needs to be verified.

gi0baro avatar Jan 15 '24 09:01 gi0baro