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

Add some compatibility imports #368

Merged

Conversation

UnknownPlatypus
Copy link
Contributor

Hi!

I've added a compatibility import replacement for django 4.0 (TRANSLATOR_COMMENT_MARK, we were actually importing this in our code base at my work) and while at it, added some older one fitting existing target-version settings.

Fixes #293

I also noticed some compatibility imports were not mentioned in the readme so I've added the missing sections.

Cheers

@UnknownPlatypus
Copy link
Contributor Author

I'm not quite fan of having so much compatibility import documentation section. Maybe it's better to group everything in a section at the end ?

Copy link
Owner

@adamchainz adamchainz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also noticed some compatibility imports were not mentioned in the readme so I've added the missing sections.

💪

I'm not quite fan of having so much compatibility import documentation section. Maybe it's better to group everything in a section at the end ?

I would prefer to keep the docs per-version based, so you can read version X release notes alongside its django-upgrade docs section and compare what will be auto-upgraded.

@adamchainz adamchainz enabled auto-merge (squash) September 24, 2023 19:36
@adamchainz adamchainz merged commit 3ca1aac into adamchainz:main Sep 24, 2023
7 checks passed
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.

Support more compatibility import rewrites
2 participants