update django-phonenumber-field

This commit is contained in:
thomas girod 2024-07-26 19:41:11 +02:00
parent c4e6272535
commit 2737cae4ab
3 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ from django.templatetags.static import static
from django.urls import reverse
from django.utils.translation import gettext
from django.utils.translation import gettext_lazy as _
from phonenumber_field.widgets import PhoneNumberInternationalFallbackWidget
from phonenumber_field.widgets import RegionalPhoneNumberWidget
from PIL import Image
from core.models import Gift, Page, SithFile, User
@ -236,8 +236,8 @@ class UserProfileForm(forms.ModelForm):
"profile_pict": forms.ClearableFileInput,
"avatar_pict": forms.ClearableFileInput,
"scrub_pict": forms.ClearableFileInput,
"phone": PhoneNumberInternationalFallbackWidget,
"parent_phone": PhoneNumberInternationalFallbackWidget,
"phone": RegionalPhoneNumberWidget,
"parent_phone": RegionalPhoneNumberWidget,
"quote": forms.Textarea,
}
labels = {

View File

@ -30,7 +30,7 @@ from django.utils.translation import gettext_lazy as _
from django.views.generic import ListView, View
from django.views.generic.detail import SingleObjectMixin
from django.views.generic.edit import FormView
from phonenumber_field.widgets import PhoneNumberInternationalFallbackWidget
from phonenumber_field.widgets import RegionalPhoneNumberWidget
from core.models import User
from core.views import FormerSubscriberMixin, search_user
@ -64,7 +64,7 @@ class SearchForm(forms.ModelForm):
]
widgets = {
"date_of_birth": SelectDate,
"phone": PhoneNumberInternationalFallbackWidget,
"phone": RegionalPhoneNumberWidget,
}
quick = forms.CharField(label=_("Last/First name or nickname"), max_length=255)

View File

@ -28,7 +28,7 @@ Pillow = "^10.4.0"
mistune = "^3.0.2"
django-jinja = "^2.11"
cryptography = "^43.0.0"
django-phonenumber-field = "^6.3"
django-phonenumber-field = "^8.0.0"
phonenumbers = "^8.12"
django-ajax-selects = "^3.0.2"
reportlab = "^4.2"