Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jul 1, 2025

Bumps django-phonenumber-field from 5.1.0 to 8.1.0.

Release notes

Sourced from django-phonenumber-field's releases.

8.1.0

What's Changed

  • Remove non-geo phone numbers from the SplitPhoneNumberWidget by @​francoisfreitag in stefanfoulis/django-phonenumber-field#614

    The phone number prefix field allows to select a world region, and maps to its prefix (e.g. get +33 for France). It was incorrectly offering regions reserved for very specific use and which cannot be mapped to a world region. Example prefixes include 800 (Universal International Freephone Service), 808 (Universal International Shared Cost Number), 870 (Global Mobile Satellite System), and others. If such a prefix was selected, the field would plainly crash. Since the prefix purpose is to let users select a world region, prevent from selecting non-geo options in the prefix list. Please open an issue if you would like to see this use case supported.

  • Document how to customize SplitPhoneNumberField fields by @​francoisfreitag in stefanfoulis/django-phonenumber-field#631

  • Clarify translations context for error messages by @​francoisfreitag in stefanfoulis/django-phonenumber-field#613

Compatibility

Full Changelog: django-phonenumber-field/django-phonenumber-field@8.0.0...8.1.0

8.0.0

What's Changed

Breaking changes

Other changes

Full Changelog: django-phonenumber-field/django-phonenumber-field@7.3.0...8.0.0


Migration guide

Previously, the widgets handled part of the validation. That behavior prevents overriding validation in form fields, as widgets were casting the value into a PhoneNumber object, validating it in the process.

Following the MultiValueField implementation from Django (and MultiWidget), the widget now handles the presentation logic, but makes no attempt at validation. The new SplitPhoneNumberField handles the logic of validating the region choice and the number, and the PhoneNumberPrefixWidget simply dispatches the region and number data to the appropriate widget.

In order to retain backward compatibility, now that the validate_international_phonenumber actually comes into play, its error code has been changed to invalid, so that the custom error message for invalid shows.

validate_international_phonenumber

... (truncated)

Changelog

Sourced from django-phonenumber-field's changelog.

CHANGELOG

Note: Releases are now tracked using GitHub releases <https://github.com/stefanfoulis/django-phonenumber-field/releases>__. This document remains for historical purposes.

6.1.0 (2022-01-12)

  • Make formfields.PhoneNumberField honor PHONENUMBER_DEFAULT_REGION
  • Use PHONENUMBER_DEFAULT_REGION for example phone number in form field errors.
  • Add support for Django 4.0
  • Add Persian (farsi) translations.
  • Update uk_AR translations

Backwards incompatible changes

  • Drop support for Python 3.6

6.0.0 (2021-10-20)

  • Add support for Python 3.10
  • Update Czech, Dutch and pt_BR translations

Backwards incompatible changes

  • formfields.PhoneNumberField with a region now display national phone numbers in the national format instead of PHONENUMBER_DEFAULT_FORMAT. International numbers are displayed in the PHONENUMBER_DEFAULT_FORMAT.

5.2.0 (2021-05-31)

  • Lazy load formfields.PhoneNumberField translation for invalid data.
  • Update Russian translations

Backwards incompatible changes

  • Drop support for end-of-life Django 3.0
Commits
  • 65bc14f docs: Adapt <ul class="errorlist"> to django output
  • ea9927b docs: Customize SplitPhoneNumberField widgets attrs
  • fb59074 docs: Split example for SplitPhoneNumerField
  • 1b272a8 Import django.forms globally in docs
  • 0bb0d20 Document how to customize SplitPhoneNumberField fields
  • 52b6663 Remove unused setup.cfg
  • 89b06b3 Remove non-geo phone numbers from the SplitPhoneNumberWidget
  • 8c38db4 Upgrade ReadTheDocs environment
  • 5e2fac4 Support Django 5.2
  • 6d4e40c Test against Python 3.14-dev
  • 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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.

matthew-li and others added 6 commits April 16, 2025 08:23
* Create dependabot.yml

* Update dependabot.yml

* Update django_testing_ci.yml
Bumps [django-phonenumber-field](https://github.com/stefanfoulis/django-phonenumber-field) from 5.1.0 to 8.1.0.
- [Release notes](https://github.com/stefanfoulis/django-phonenumber-field/releases)
- [Changelog](https://github.com/stefanfoulis/django-phonenumber-field/blob/main/CHANGELOG.rst)
- [Commits](django-phonenumber-field/django-phonenumber-field@5.1.0...8.1.0)

---
updated-dependencies:
- dependency-name: django-phonenumber-field
  dependency-version: 8.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jul 1, 2025
@matthew-li matthew-li changed the base branch from master to develop July 7, 2025 17:52
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 6, 2025

A newer version of django-phonenumber-field exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

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.

3 participants