Skip to content

Bump django-countries from 8.2.0 to 9.0.0#110

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/django-countries-9.0.0
Open

Bump django-countries from 8.2.0 to 9.0.0#110
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/django-countries-9.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 15, 2026

Copy link
Copy Markdown
Contributor

Bumps django-countries from 8.2.0 to 9.0.0.

Changelog

Sourced from django-countries's changelog.

9.0.0 (10 June 2026)

Features

  • Nullable CountryField (with null=True) now returns None instead of Country(code=None) when the database value is NULL. This makes the nullability explicit at the field level rather than inside the Country object, resulting in cleaner typing where Country.code is always a str (never None).

    Breaking change: Code that previously checked obj.country.code is None should now check obj.country is None. The common pattern if obj.country: continues to work unchanged. (#481)

  • Add Django 6.0 and Python 3.14 support. Drop Django 3.2, 5.0, 5.1 and Python 3.8, 3.9. Minimum DRF bumped to 3.14.

  • Add an opt-in Countries.sorted(locale=...) helper to return country choices sorted by translated display names.

Bugfixes

  • Fix multiple type stub issues in fields.pyi: correct return types for Country.name, Country.alpha3, Country.ioc_code (now str instead of str | None), Country.numeric (now int | None instead of str | None), and MultipleCountriesDescriptor.__iter__ (now Iterator[Country] instead of Any). Also add missing blank_label attribute and accept positional verbose_name argument in CountryField.__init__ overloads. (#483)
  • Exclude .mypy_cache directory from source distributions (was 73% of the sdist). (#490)

Improved Documentation

  • Clarify that multiple=True returns a MultipleCountriesDescriptor, not a plain list. (#485)
Commits
  • ee82223 Preparing release 9.0.0
  • 4c391e3 Update translations from Transifex
  • 08d54b2 Update English translation source file
  • 1ada565 Add changelog fragments for 9.0.0
  • 229fd80 Clarify docs: multiple=True returns MultipleCountriesDescriptor, not list
  • b4eb7f5 Exclude .mypy_cache from source distributions
  • efae6fc Return None for nullable CountryField when value is NULL
  • 88c36c9 Add locale-sorted countries helper
  • 01e62f7 Add Django 6.0, Python 3.14, drop unsupported versions
  • b0877b5 Add regression test for issue #300: COUNTRIES_ONLY and migrations
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jun 15, 2026
@JobDoesburg

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [django-countries](https://github.com/SmileyChris/django-countries) from 8.2.0 to 9.0.0.
- [Changelog](https://github.com/SmileyChris/django-countries/blob/main/CHANGES.md)
- [Commits](SmileyChris/django-countries@v8.2.0...v9.0.0)

---
updated-dependencies:
- dependency-name: django-countries
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/django-countries-9.0.0 branch from ab595a6 to c1ead36 Compare June 26, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant