Skip to content

'ReturnList' object has no attribute 'get' #53

@philippeluickx

Description

@philippeluickx

I am using the develop branch and get this in return when accessing a list:

'ReturnList' object has no attribute 'get'

                json_api_included.extend(included)
        else:
            json_api_data = data
    # Make sure we render data in a specific order
    render_data = OrderedDict()
                if data.get('links'): ...
        render_data['links'] = data.get('links')
    render_data['data'] = json_api_data
    if len(json_api_included) > 0:
        # Iterate through compound documents to remove duplicates

With the actual variable being

data
[OrderedDict([(u'id', 2), (u'user', 2), (u'slug', u'asdfasdfsadf'),...])]

Using the latest DRF @ 18c93912180aa93d1120495d4f7e47d7bed025f4

I am using a ModelViewSet and the detail view works.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions