Skip to content

build(deps): bump django-countries from 8.2.0 to 9.0.0 - #709

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

build(deps): bump django-countries from 8.2.0 to 9.0.0#709
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/uv/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 compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

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

jelly commented Jun 15, 2026

Copy link
Copy Markdown
Member

@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/uv/django-countries-9.0.0 branch from fc0d9e4 to 3aa6b40 Compare June 15, 2026 19:21
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:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant