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

Remove Django 3.2 collations compatibility hack #212

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

ormsbee
Copy link
Contributor

@ormsbee ormsbee commented Aug 16, 2024

Setting the collation via Field db_parameters was not properly supported before Django 4.x. We worked around this with a Django 3.2-compatible hack in ormsbee@084ec21. Now that we require at least Django 4.2, we no longer need the compatibility hack.

Setting the collation via Field db_parameters was not properly supported
before Django 4.x. We worked around this with a Django 3.2-compatible
hack in 084ec21. Now that we require at least Django 4.2, we no longer
need the compatibility hack.
@ormsbee
Copy link
Contributor Author

ormsbee commented Aug 16, 2024

It's stupid, but I'm irrationally fond of the hack that I'm removing here. I mean, the hack is absolutely terrible and we're definitely better off getting rid of it, but it worked surprisingly well. 😛

@ormsbee ormsbee merged commit 7675109 into openedx:main Aug 16, 2024
9 checks passed
@ormsbee ormsbee deleted the remove_django3_hack branch August 16, 2024 17:03
@kdmccormick
Copy link
Member

Yeah, OOP and getter/setter magic can drive me crazy but this is a good demonstration of when it's really helpful 😄

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