Skip to content

resource id field should be based on serializer lookup_field #295

Closed
@AndreiHondrari

Description

@AndreiHondrari

Currently if you have a lookup_field on serializers that is different from the 'pk', you will be able to do `/api/objects/{new_lookup_field}' but in the payload the "id" will still be the numerical one that django uses by default. This goes for GET and PATCH. I think this is an inconsistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions