You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/xxx/xxx/xxx/views.py", line 75, in stats
data_source = ModelDataSource(isps, fields=['isp', 'the_count'])
File "/usr/local/lib/python3.5/dist-packages/graphos/sources/model.py", line 36, in __init__
self.data = self.create_data()
File "/usr/local/lib/python3.5/dist-packages/graphos/sources/model.py", line 41, in create_data
data.append(get_field_values(row, self.fields))
File "/usr/local/lib/python3.5/dist-packages/graphos/sources/model.py", line 8, in get_field_values
value = getattr(row, field)
AttributeError: 'dict' object has no attribute 'isp'
The text was updated successfully, but these errors were encountered:
Hi,
It seems that you don't handle the dictionaries properly in your code, check this simple code:
The error I get is:
The text was updated successfully, but these errors were encountered: