Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Filter validation too rigid for filters with suffixes #938

Open
Labels
@SafaAlfulaij

Description

@SafaAlfulaij

Here:

if (notfilterset_class)or (knotinfilterset_class.base_filters):

RangeFilter is used to specify a value of the two ends without specifying the other. It works by looking for "min/after" and "max/before" in the query param.

This should work:

UsingDateFromToRangeFilter, defined this way:

last_updated=DateFromToRangeFilter()

and passing the filter:
filters[last_updated_after]=2016-01-01

will execute:.filter(last_updated__gte="2016-01-01")

Currently it fails aslast_updated_after !=last_updated (as in the quoted code:base_filters containslast_updated but notlast_updated_after orlast_updated_before)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp