Skip to content

Response format change from 3.2.x to 3.3.x #3644

Closed
@troygrosfield

Description

@troygrosfield

After upgrading DRF from 3.2.5 to 3.3.1 I noticed the api response format changed and no longer represents the format that's shown on the main page.

Api response with DRF 3.2.5 (expected response)

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        // my object results
    ]
}

Api response with DRF 3.3.1 (only returns list/array)

[
    // my object results
]

There is only 1 object returned in the result set so no additional pages exist. However, this change breaks every api consuming caller since the response format has now changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions