Skip to content

Support Django 5.2.1 and elasticsearch-dsl 7.x #101

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ddusim
Copy link

@ddusim ddusim commented Jul 21, 2025

  • Update setup.py dependencies to elasticsearch-dsl>=7.0.0,<8.0.0
  • Add Django 5.x classifiers and Python 3.12 support
  • Fix DocType import (replaced with Document for elasticsearch-dsl 7.x)
  • Bump version to 7.0.0a1

- Update setup.py dependencies to elasticsearch-dsl>=7.0.0,<8.0.0
- Add Django 5.x classifiers and Python 3.12 support
- Fix DocType import (replaced with Document for elasticsearch-dsl 7.x)
- Bump version to 7.0.0a1
@kofic
Copy link
Contributor

kofic commented Jul 21, 2025

@ddusim I don't think we should merge to master? Can we tag this branch and have CP requirements install that tag?

I believe that's what the previousl upgrades did - I don't believe they were merged to master

…pe() calls

- Replace super().doc_type() calls with direct doc_type handling
- Fixes AttributeError: 'super' object has no attribute 'doc_type'
- Compatible with newer elasticsearch-dsl versions that removed doc_type method
- Maintains backward compatibility by using stored __doc_type attribute
@ddusim
Copy link
Author

ddusim commented Jul 21, 2025

@kofic I am using this in requirements.in git+https://github.com/HBS-HBX/django-elastic-migrations.git@django-5.2.1-elasticsearch-7-clean and I don't think we need to merge this branch

@kofic
Copy link
Contributor

kofic commented Jul 21, 2025

@ddusim nice looks great 💯

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

Successfully merging this pull request may close these issues.

2 participants