Skip to content

Commit

Permalink
Merge pull request #230 from adamspd/229-django-phonenumber-field-upd…
Browse files Browse the repository at this point in the history
…ate-to-latest-version

Migrate django-phonenumber-field from 7.3.0 to 8.0.0
  • Loading branch information
adamspd authored Aug 3, 2024
2 parents 8937793 + bac17a2 commit 91a782d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appointment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
__url__ = "https://github.com/adamspd/django-appointment"
__package_website__ = "https://django-appt.adamspierredavid.com/"
__package_doc_url__ = "https://django-appt-doc.adamspierredavid.com/overview.html"
__version__ = "3.6.1"
__version__ = "3.6.2"
__test_version__ = False
4 changes: 2 additions & 2 deletions appointment/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from django import forms
from django.utils.translation import gettext as _
from phonenumber_field.formfields import PhoneNumberField
from phonenumber_field.formfields import PhoneNumberField, SplitPhoneNumberField
from phonenumber_field.widgets import PhoneNumberPrefixWidget

from .models import (
Expand Down Expand Up @@ -40,7 +40,7 @@ class Meta:


class AppointmentForm(forms.ModelForm):
phone = PhoneNumberField(widget=PhoneNumberPrefixWidget(initial='US'))
phone = SplitPhoneNumberField()

class Meta:
model = Appointment
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pillow==10.4.0
phonenumbers==8.13.42
django-phonenumber-field==7.3.0
django-phonenumber-field==8.0.0
babel==2.15.0
setuptools==72.1.0
requests~=2.32.3
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Django==5.0.7
Pillow==10.4.0
phonenumbers==8.13.42
django-phonenumber-field==7.3.0
django-phonenumber-field==8.0.0
babel==2.15.0
setuptools==72.1.0
requests~=2.32.3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ install_requires =
Django>=4.2
Pillow==10.4.0
phonenumbers==8.13.42
django-phonenumber-field==7.3.0
django-phonenumber-field==8.0.0
babel==2.15.0
django-q2==1.6.2

0 comments on commit 91a782d

Please sign in to comment.