Comments (8)
Agreed. This is blocking our upgrade to Django v5.0.
django-haystack/haystack/fields.py
Line 5 in eb3f1d5
https://docs.djangoproject.com/en/5.0/releases/5.0/#features-removed-in-5-0
from django-haystack.
Fixed in #1915 but not yet released to PyPI. Workaround for Django v5.0 deployments:
% pip install git+https://github.com/django-haystack/django-haystack.git
from django-haystack.
@cclauss Thanks! Any ETA on a PyPI release?
from django-haystack.
Django 5.0 is now out, and this issue now officially is a problem
A link to proposed solution is documented above...
from django-haystack.
Django now uses django.utils.formats.sanitize_strftime_format() to handle what datetime_safe was doing previously.
https://github.com/django/django/blob/0ee2b8c326d47387bacb713a3ab369fa9a7a22ee/django/utils/formats.py#L244
from django-haystack.
Are you able to create a PR for that?
from django-haystack.
I'm not certain that haystack needs to sanitize the date strings. Django only seems to do this in a few very specific and important instances, and in one instance, django.utils.feedgenerator, they just replaced datetime_safe with python's native datetime.
from django-haystack.
Fixed in #1915 but not yet released to PyPI. Workaround for Django v5.0 deployments: %
pip install git+https://github.com/django-haystack/django-haystack.git
@cclauss thanks :)
from django-haystack.
Related Issues (20)
- Some tests are skipped due to duplicate names
- Some tests are skipped due to duplicate names
- When will haystack release for django 4.0+ version? HOT 14
- RemovedInDjango41Warning due to default_app_config.
- Forcing indexing to use different connection than Default - mutiple languages
- crash after updating to 3.2 (date_facet_fields is returning: TypeError: 'NoneType' object is not iterable) HOT 2
- Issue when filtering by a boolean field in elasticsearch7 HOT 5
- Loss of result information in Solr range facet query
- Cannot index proxy model HOT 1
- Relation to Deepset AI Haystack
- Create new release with Django v4 and v5 support HOT 17
- AWS open search compatibility (should be quick to fix) HOT 1
- Django Haystack indexing is not working for many to many field in model
- Storing indexes in the database
- AttributeError: 'list' object has no attribute 'split' using count() method for a SearchQuerySet
- icontains doesn't return the correct amount. HOT 2
- Need Help: GitHub Actions tests are failing
- Django 5 deprecated datetime_safe --> Drop support for whoosh? HOT 2
- How to authenticate to Elastic cloud using API key?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-haystack.