Skip to content

How can I make the filter work with jsonb in django? #296

@simkimsia

Description

@simkimsia

Suppose I use a jsonb field how do I use it for filter?

example, under Person model, I have a JSONField called data that has the following default

{
  "email": "abc",
  "address": "abc"
}

And I want to use something like this:

/api/v1/people/?filter{data.email.icontains}=test5&per_page=20&page=1&sort[]=-modified

Is this something i can add as a pull request? I can help to write this

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