Repository navigation
refactor: use pycountry for country list - #12009
Merged
Merged
Conversation
Eliminates one use of pytz
jennifer-richards
marked this pull request as draft
November 6, 2026 20:52
Member
Author
|
Moving this to draft because it does not need to come in until after IETF-127 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12009 +/- ##
==========================================
+ Coverage 89.27% 89.28% +0.01%
==========================================
Files 343 343
Lines 46813 46808 -5
==========================================
+ Hits 41790 41791 +1
+ Misses 5023 5017 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jennifer-richards
marked this pull request as ready for review
December 3, 2026 18:11
rjsparks
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is aimed at moving toward Django 5.2. Eliminates one use of pytz, using pycountry as a data source. That package is a repackaging of the iso country database and, while not exactly equivalent to pytz's data, contains all the countries needed by existing meetings or likely to be needed in the future.
This adds a migration to update the field's
choiceslist. Once we're on Django 5.2, we can refactor to avoid having to migrate every time the country data change.This is intentionally a narrow patch. We may want to do a more ambitious rework of how country data are handled, including the CountryAlias table (eg), but that should not hold up this work.