Skip to content

Commit

Permalink
Bump to version 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Nov 9, 2023
1 parent 1083e07 commit 415383e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changes

1.3.1
* Improved the usability of the `PhoneNumberField`. The user is now forced to select the country
code from a dropdown list, whenever the phone number does not start with `+`.
* The dropdown list of the `PhoneNumberField` now shows the countries name in the current
language.

1.3
* New widget: `PhoneNumberField` which can be used to improve the user experience when entering
phone numbers.
Expand Down
3 changes: 3 additions & 0 deletions client/django-formset/countries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const countries = new Map<string, string>([
["AR", "Argentina"],
["AM", "Armenia"],
["AW", "Aruba"],
["AC", "Ascension Island"],
["AU", "Australia"],
["AT", "Austria"],
["AZ", "Azerbaijan"],
Expand Down Expand Up @@ -117,6 +118,7 @@ export const countries = new Map<string, string>([
["KZ", "Kazakhstan"],
["KE", "Kenya"],
["KI", "Kiribati"],
["XK", "Kosovo"],
["KP", "North Korea"],
["KR", "South Korea"],
["KW", "Kuwait"],
Expand Down Expand Up @@ -185,6 +187,7 @@ export const countries = new Map<string, string>([
["RU", "Russia"],
["RW", "Rwanda"],
["BL", "Saint Barthélemy"],
["TA", "Saint Helena"],
["SH", "Saint Helena, Ascension and Tristan da Cunha"],
["KN", "Saint Kitts and Nevis"],
["LC", "Saint Lucia"],
Expand Down
2 changes: 1 addition & 1 deletion formset/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = 1, 3
VERSION = 1, 3, 1
__version__ = '.'.join(map(str, VERSION))
2 changes: 2 additions & 0 deletions testapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
asgiref==3.7.2
beautifulsoup4==4.12.2
coverage==7.3.1
django-countries==7.5.1
docutils==0.20.1
greenlet==2.0.2
iniconfig==2.0.0
packaging==23.1
Expand Down
5 changes: 0 additions & 5 deletions testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@

USE_I18N = True

LANGUAGES = [
("de", _("German")),
("en", _("English")),
]

ROOT_URLCONF = 'testapp.urls'

STATICFILES_DIRS = [
Expand Down
4 changes: 2 additions & 2 deletions testapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def render_landing(request):
return HttpResponse(template.render(context))


urlpatterns = i18n_patterns(
urlpatterns = [
# path('', render_landing),
path('success', lambda request: HttpResponse('<h1>Form data succesfully submitted</h1>'), name='form_data_valid'),
path('default/', include(('testapp.views', 'default'))),
Expand All @@ -35,7 +35,7 @@ def render_landing(request):
path('tailwind/', include(('testapp.views', 'tailwind'))),
path('uikit/', include(('testapp.views', 'uikit'))),
path('jsi18n/formset.js', JavaScriptCatalog.as_view(), name='javascript-catalog'),
)
]
urlpatterns.extend(static(
settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT
Expand Down

0 comments on commit 415383e

Please sign in to comment.