Django-intl-tel-input

Latest version: v0.3.1

Safety actively analyzes 622315 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.1

Fix `use_default_init` to use media as computed property.

0.3.0

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`.

Python
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.

0.2.0

- Adds support for Django 2.0, 2.1, and Python 3.7.
- Removes support for Django <1.11.

0.1.5

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

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

0.1.4

This release fixes issues with multiple inputs per form.

0.1.3

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.