Skip to content

Deprecate AllLookupsFilter in favor of Meta.fields '__all__' #121

Closed
@rpkilby

Description

@rpkilby

Hi @philipn - wanted to get your opinion on deprecating AllLookupsFilter before a 1.0 release. We currently have two ways of exposing all lookups:

  • some_field = filters.AllLookupsFilter()
  • Meta.fields = {'some_field': '__all__'}

My thoughts on this:

  • They are functionally identical for the end user
  • This entire section of code is dedicated to supporting just AllLookupsFilter and requires duplicating some code from the main django_filters package.
  • "There should be one obvious way to do it."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions