Skip to content

Releases: benmurden/django-intl-tel-input

v0.4.0

09 Sep 06:46
7544efb
Compare
Choose a tag to compare

What's Changed

  • Fix import Django4.0, update intl-tel-input17.0.19 by @afusaru in #19

New Contributors

Full Changelog: v0.3.1...v0.4.0

v0.3.1

20 Mar 06:58
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release

Fix use_default_init to use media as computed property.

v0.3.0

20 Mar 06:08
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Changes invocation of the widget removing auto_geo_ip and adding use_default_init=True.

There are too many possible valid implementations of the geoIpLookup feature in intl-tel-input, and it would be better left up to the developer to decide how to use it, so we have decided to no longer support a default implementation. To help developers implement their own initialization scripts, we have included a new option use_default_init, which will include the default implementation if True, and exclude it if False.

class MyForm(forms.Form):
    tel_number = forms.CharField(widget=IntlTelInputWidget(
        use_default_init=False
    ))

...

Now when you include {{ form.media.js }} in your template, you'll only get the standard intl-tel-input-jquery.min.js and no init.js. Copy the default init.js and modify according to your needs.

v0.2.0

29 Nov 08:07
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
  • Adds support for Django 2.0, 2.1, and Python 3.7.
  • Removes support for Django <1.11.

v0.1.5

09 Jul 04:39
Compare
Choose a tag to compare
v0.1.5 Pre-release
Pre-release

Adds support for copying placeholder text to dynamic input. Set widget input attributes as normal.

tel_number = forms.CharField(widget=IntlTelInputWidget(
    attrs={'title': 'Telephone number', 'placeholder': 'foobar'}
))

v0.1.4

06 Jul 02:34
Compare
Choose a tag to compare
v0.1.4 Pre-release
Pre-release

This release fixes issues with multiple inputs per form.

v0.1.3

06 Jul 01:33
Compare
Choose a tag to compare
v0.1.3 Pre-release
Pre-release
Update version compatibility