Django-intl-tel-input

Latest version: v0.4.0

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

Scan your dependencies

Page 1 of 2

0.4.0

What's Changed
* Fix import Django4.0, update intl-tel-input17.0.19 by afusaru in https://github.com/benmurden/django-intl-tel-input/pull/19

New Contributors
* afusaru made their first contribution in https://github.com/benmurden/django-intl-tel-input/pull/19

**Full Changelog**: https://github.com/benmurden/django-intl-tel-input/compare/v0.3.1...v0.4.0

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.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.