[PR #2597] [MERGED] Bump django-phonenumber-field[phonenumbers] from 6.3.0 to 7.0.0 #2630

Closed
opened 2026-02-27 12:11:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/modoboa/modoboa/pull/2597
Author: @dependabot[bot]
Created: 9/8/2022
Status: Merged
Merged: 9/8/2022
Merged by: @tonioo

Base: masterHead: dependabot/pip/django-phonenumber-field-phonenumbers--7.0.0


📝 Commits (1)

  • 78b7173 Bump django-phonenumber-field[phonenumbers] from 6.3.0 to 7.0.0

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 requirements.txt (+1 -1)

📄 Description

Bumps django-phonenumber-field[phonenumbers] from 6.3.0 to 7.0.0.

Release notes

Sourced from django-phonenumber-field[phonenumbers]'s releases.

7.0.0

Possible backward incompatibilities

  • RegionalPhoneNumberWidget becomes the default widget for the formfields.PhoneNumberField.
  • The formfields.PhoneNumberField no longer sets the input_type attribute of its widget to tel. That behavior did not make sense for the existing PhoneNumberPrefixWidget and was dropped.
  • PhoneNumberInternationalFallbackWidget will be replaced by RegionalPhoneNumberWidget in the next major version. It is deprecated until the next major release.

Changes

New Contributors

Full Changelog: https://github.com/stefanfoulis/django-phonenumber-field/compare/6.4.0...7.0.0

6.4.0

What's Changed

New Contributors

Full Changelog: https://github.com/stefanfoulis/django-phonenumber-field/compare/6.3.0...6.4.0

Commits
  • 0cd27e2 Prefer SUPPORTED_REGIONS over _AVAILABLE_REGION_CODES
  • 9d568cc Add documentation to the project
  • ecf086c Evolve PhoneNumberInternationalWidget to RegionalPhoneNumberWidget
  • 17e9eb5 add missing Dutch translation
  • d8c0247 Render input value with PhoneNumberPrefixWidget on form errors
  • 290e82b Set PhoneNumberInternationalFallbackWidget input_type to tel
  • 1f012e4 Implement region argument for serializerfields
  • b746061 Allow restricting PhoneNumberPrefixWidget country choices
  • 8ad812c Handle primitive types in serializerfields
  • b801e74 Verify ModelSerializer for a blank field accepts empty input
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/modoboa/modoboa/pull/2597 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 9/8/2022 **Status:** ✅ Merged **Merged:** 9/8/2022 **Merged by:** [@tonioo](https://github.com/tonioo) **Base:** `master` ← **Head:** `dependabot/pip/django-phonenumber-field-phonenumbers--7.0.0` --- ### 📝 Commits (1) - [`78b7173`](https://github.com/modoboa/modoboa/commit/78b71732323b04d2aa5f3138402af15ba470493a) Bump django-phonenumber-field[phonenumbers] from 6.3.0 to 7.0.0 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description Bumps [django-phonenumber-field[phonenumbers]](https://github.com/stefanfoulis/django-phonenumber-field) from 6.3.0 to 7.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/stefanfoulis/django-phonenumber-field/releases">django-phonenumber-field[phonenumbers]'s releases</a>.</em></p> <blockquote> <h2>7.0.0</h2> <h2>Possible backward incompatibilities</h2> <ul> <li><code>RegionalPhoneNumberWidget</code> becomes the default widget for the <code>formfields.PhoneNumberField</code>.</li> <li>The <code>formfields.PhoneNumberField</code> no longer sets the <code>input_type</code> attribute of its widget to <code>tel</code>. That behavior did not make sense for the existing <code>PhoneNumberPrefixWidget</code> and was dropped.</li> <li><code>PhoneNumberInternationalFallbackWidget</code> will be replaced by <code>RegionalPhoneNumberWidget</code> in the next major version. It is deprecated until the next major release.</li> </ul> <h2>Changes</h2> <ul> <li> <p>Restore <code>PhoneNumberPrefixWidget</code> number input on form errors by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/520">stefanfoulis/django-phonenumber-field#520</a></p> <p>Fixes a bug where the form field <code>prepare_value()</code> transformed the <code>PhoneNumber</code> value to an <code>str</code> in the national format, but <code>PhoneNumberPrefixWidget</code> expects its value to be a <code>PhoneNumber</code>. <code>formfields.PhoneNumberField</code> now represents its value with a <code>PhoneNumber</code> object, giving widgets more control on how to display the value.</p> <p>That behavior prompted the change to <code>PhoneNumberInternationalFallbackWidget</code> becoming the default widget, to preserve the behavior established in <a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/005769cf39323e5b23710783f45befb546672cd6">https://github.com/stefanfoulis/django-phonenumber-field/commit/005769cf39323e5b23710783f45befb546672cd6</a>. Switching to the widget allows users to opt-out from that behavior (e.g. by using a <a href="https://docs.djangoproject.com/en/4.1/ref/forms/widgets/#django.forms.TextInput"><code>TextInput</code></a> widget), whereas <code>prepare_value()</code> forced the conversion to the national string format.</p> </li> <li> <p>Set <code>PhoneNumberInternationalFallbackWidget</code> <code>input_type</code> to <code>tel</code> by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/521">stefanfoulis/django-phonenumber-field#521</a></p> <p>Previously, the <code>&lt;input&gt;</code> from the <code>PhoneNumberInternationalFallbackWidget</code> was set to <code>text</code>.</p> </li> <li> <p>Evolve <code>PhoneNumberInternationalWidget</code> to <code>RegionalPhoneNumberWidget</code> by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/529">stefanfoulis/django-phonenumber-field#529</a></p> <p>The newer widget gives more control over the display of phone numbers. The behavior of <code>PhoneNumberInternaltionalWidget</code> can be retained by setting <code>PHONENUMBER_DEFAULT_FORMAT=&quot;INTERNATIONAL&quot;</code>, which is why <code>PhoneNumberInternaltionalWidget</code> will be removed in the next major version.</p> </li> <li> <p>Add Dutch translation by <a href="https://github.com/thijskramer"><code>@​thijskramer</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/532">stefanfoulis/django-phonenumber-field#532</a></p> </li> <li> <p>Add documentation and host it at readthedocs.org by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/531">stefanfoulis/django-phonenumber-field#531</a></p> </li> <li> <p>Prefer <code>SUPPORTED_REGIONS</code> over <code>_AVAILABLE_REGION_CODES</code> by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/528">stefanfoulis/django-phonenumber-field#528</a></p> </li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/thijskramer"><code>@​thijskramer</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/532">stefanfoulis/django-phonenumber-field#532</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/stefanfoulis/django-phonenumber-field/compare/6.4.0...7.0.0">https://github.com/stefanfoulis/django-phonenumber-field/compare/6.4.0...7.0.0</a></p> <h2>6.4.0</h2> <h2>What's Changed</h2> <ul> <li>Allow restricting PhoneNumberPrefixWidget country choices by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/525">stefanfoulis/django-phonenumber-field#525</a></li> <li>Handle empty input to PhoneNumberPrefixWidget by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/512">stefanfoulis/django-phonenumber-field#512</a></li> <li>Handle primitive types in serializerfields by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/523">stefanfoulis/django-phonenumber-field#523</a></li> <li>Implement region argument for serializerfields by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/519">stefanfoulis/django-phonenumber-field#519</a></li> <li>Fix CHANGELOG link to GitHub Releases by <a href="https://github.com/adamchainz"><code>@​adamchainz</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/507">stefanfoulis/django-phonenumber-field#507</a></li> <li>Add compatibility with Django 4.1 by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/516">stefanfoulis/django-phonenumber-field#516</a></li> <li>Drop support for end-of-life Django 2.2 by <a href="https://github.com/francoisfreitag"><code>@​francoisfreitag</code></a> in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/515">stefanfoulis/django-phonenumber-field#515</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/adamchainz"><code>@​adamchainz</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/stefanfoulis/django-phonenumber-field/pull/507">stefanfoulis/django-phonenumber-field#507</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/stefanfoulis/django-phonenumber-field/compare/6.3.0...6.4.0">https://github.com/stefanfoulis/django-phonenumber-field/compare/6.3.0...6.4.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/0cd27e2b3f0784ff3700a7f77df01a9d9997b6b2"><code>0cd27e2</code></a> Prefer SUPPORTED_REGIONS over _AVAILABLE_REGION_CODES</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/9d568cc8fae07b22e53983ff02f21cd5469b23bd"><code>9d568cc</code></a> Add documentation to the project</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/ecf086cbb1c46ad1047ee6526605fe0005e42bed"><code>ecf086c</code></a> Evolve PhoneNumberInternationalWidget to RegionalPhoneNumberWidget</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/17e9eb576bb1b9ad65583149c2153f507f607b4b"><code>17e9eb5</code></a> add missing Dutch translation</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/d8c02478aca27f42fbfe98f606f91df7a1da6a94"><code>d8c0247</code></a> Render input value with PhoneNumberPrefixWidget on form errors</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/290e82b9229db3f1833a150f2e32f18405205ff3"><code>290e82b</code></a> Set PhoneNumberInternationalFallbackWidget input_type to tel</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/1f012e4f172b1814fdaa240800dbd0014df6e6d1"><code>1f012e4</code></a> Implement region argument for serializerfields</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/b74606150f67c770083243cd73dcd33b7a59fde4"><code>b746061</code></a> Allow restricting PhoneNumberPrefixWidget country choices</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/8ad812c13ad241c7f5827bc67ef146578464f23f"><code>8ad812c</code></a> Handle primitive types in serializerfields</li> <li><a href="https://github.com/stefanfoulis/django-phonenumber-field/commit/b801e74acf69e30f175d7121c905bfa01e44fad3"><code>b801e74</code></a> Verify ModelSerializer for a blank field accepts empty input</li> <li>Additional commits viewable in <a href="https://github.com/stefanfoulis/django-phonenumber-field/compare/6.3.0...7.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=django-phonenumber-field[phonenumbers]&package-manager=pip&previous-version=6.3.0&new-version=7.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 12:11:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#2630
No description provided.