emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

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

Open josejachuf opened 5 years ago

josejachuf commented 5 years ago

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

gaytomycode commented 9 months ago

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

gi0baro commented 9 months ago

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