Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query type error when I input empty string #597

Open
murtazox04 opened this issue Aug 7, 2024 · 1 comment
Open

Query type error when I input empty string #597

murtazox04 opened this issue Aug 7, 2024 · 1 comment

Comments

@murtazox04
Copy link

`
class UserAchievementFilter(Filter):
price__gte: Optional[int] = None
price__lte: Optional[int] = None
search: Optional[str] = None

class Constants(Filter.Constants):
    model = ReviewAchievement

`

If I open the filter used endpoint like: http://127.0.0.1:8000/endpoint?price__gte=
return this error:
{"errors":[{"type":"int_parsing","loc":["query","price__gte"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":""}]}

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 26, 2024
@arthurio arthurio removed the Stale label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants