Django-autocomplete-light

Latest version: v3.11.0

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

Scan your dependencies

Page 18 of 29

2.0.0pre

There are minor backward compatibility breaks due to the
reorganization of form classes. The best way to upgrade is to
inherit from autocomplete_light.ModelForm.

- autocomplete_light.FixedModelForm was renamed to
autocomplete_light.SelectMultipleHelpTextRemovalMixin and is now
a mixin for ModelForm. Inherit from both that and
django.forms.ModelForm to get the same.
- GenericModelForm was renamed to
GenericM2MRelatedObjectDescriptorHandlingMixin and is now a mixin
for ModelForm. Inherit from both that and django.forms.ModelForm
to get the same.
- get_widgets_dict is gone, because we now favor using form fields
which do validation where it's due: on POST.
- using widgets should still work, but using the new form fields is
better because it enables DRY validation: you don't have to
hardcode the queryset on the form field definition anymore.

To fix those, just inherit from autocomplete_light.ModelForm if
possible, else check the form API details in the source or
generated API documentation:

- https://django-autocomplete-light.readthedocs.io/en/v2/form.html#module-autocomplete_light.forms

New features:

- Added form fields, which are now in charge of validation,
- Added ModelForm which includes all features previously provided as
separated tools (generic m2m support, django issue 9321, etc, etc ...)
and overrides django's form field generator to automatically use
autocomplete fields when possible, even for generic relations.
- Python3 support.
- Tests rely on apps provided in the autocomplete_light.tests.apps
submodule instead of those provided by test_project. This make tests
potentially runnable on a user project (except that the user project
still needs to add those apps in INSTALLED_APPS).

1.4.9: Fix 193: IE8 support hacks.

1.4.8: Fix 195: RegistryView got broken on recent Django versions.

2.0.0a16

Not secure
- 252: Not all INSTALLED_APPS are modules (Django 1.7),
- 270: SelectMultipleHelpTextRemovalMixin multiple language support,
- 267: Delegate add-another url generation to Autocomplete class,
- 269: make build_widget_attrs thread-safe,
- 250: Fix ChoiceField.get_choices(),
- 192: Auto-load local jquery if not loaded already,
- Django 1.7b2 support.

2.0.0a15

Not secure
- Honor Meta.widgets,
- Added .modern-style class for autocomplete widget,

2.0.0a14

Not secure
2.0.0a13: Fix 244: Added ajax loading in input.autocomplete.

2.0.0a12

Not secure
with django.

2.0.0a11

Not secure
- 241 IE11 compatibility fix on text autocomplete contributed by Jonathan
Wiklund (MaZZly)

Page 18 of 29

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.