-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DATETIME_REGEX does not match DateField fields #1188
Comments
@acdha Environment:
|
@ravigadila I created a patch for this see this snippet https://gist.github.com/mgaby25/d603cf828ec90899a160 |
Now the convert method will be called by default when string values are received instead of the normal date/datetime values. Closes django-haystack#1188
Now the convert method will be called by default when string values are received instead of the normal date/datetime values. Closes django-haystack#1188
in master i get errorDate provided to 'top_position_date' field doesn't appear to be a valid date string: '2016-04-09T00:30:13Z' |
Yeah I am getting this as well:
|
@saulshanabrook Your string represents a datetime field, you should use a DateTimeField instead of DateField |
@mgaby25 You are right, it works when I changed it. Thank you! |
To reproduce this just use a ModelSearchIndex where the model has a field of type DateField.
You should get a similar error when you try to filter using SearchQuerySet:
SearchFieldError: Datetime provided to 'disappear_date' field doesn't appear to be a valid datetime string: '2013-01-03'
The text was updated successfully, but these errors were encountered: