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

Search for in ("") raises strptime() error #97

Open
danmoz opened this issue Nov 7, 2022 · 0 comments
Open

Search for in ("") raises strptime() error #97

danmoz opened this issue Nov 7, 2022 · 0 comments

Comments

@danmoz
Copy link

danmoz commented Nov 7, 2022

Reproduction steps:

  1. Go to your UserAdmin
  2. Search for created_at in ("")

Exception is raised:

TypeError at /admin/user/user/
strptime() argument 1 must be str, not list

Expected behaviour:

Exception is handled as if the user had searched for any other invalid date, e.g.

created_at in ("foo")

which handles the error with a message:

Field "created_at" can be compared to timestamps in "YYYY-MM-DD HH:MM" format, but not to 'foo'

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

1 participant