From 458ff01ab9fdf1d6f40df7fa0ae8573cdec2695c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 05:36:06 +0000 Subject: [PATCH 1/5] Bump bandit from 1.7.9 to 1.7.10 Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.9 to 1.7.10. - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](https://github.com/PyCQA/bandit/compare/1.7.9...1.7.10) --- updated-dependencies: - dependency-name: bandit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- linter-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter-requirements.txt b/linter-requirements.txt index 459cdbb8..b5693ea6 100644 --- a/linter-requirements.txt +++ b/linter-requirements.txt @@ -1,4 +1,4 @@ -bandit==1.7.9 +bandit==1.7.10 black==24.8.0 flake8==7.1.1 isort==5.13.2 From 59798d20c65cd09f6682cc18c50d1d7e2ee4df86 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 05:12:15 +0000 Subject: [PATCH 2/5] Bump black from 24.8.0 to 24.10.0 Bumps [black](https://github.com/psf/black) from 24.8.0 to 24.10.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/24.8.0...24.10.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- linter-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter-requirements.txt b/linter-requirements.txt index b5693ea6..579f7bf6 100644 --- a/linter-requirements.txt +++ b/linter-requirements.txt @@ -1,5 +1,5 @@ bandit==1.7.10 -black==24.8.0 +black==24.10.0 flake8==7.1.1 isort==5.13.2 pydocstyle[toml]==6.3.0 From de441b64130455a86612419adf774af938ed3589 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 05:25:43 +0000 Subject: [PATCH 3/5] Bump codecov/codecov-action from 4 to 5 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a3c1aa7..af48ff49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: - run: python -m pip install Django~="${{ matrix.django-version }}.0" - run: python -m pip install -e .[test] - run: python -m pytest -m "not selenium" - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 Selenium: needs: @@ -109,4 +109,4 @@ jobs: - run: python -m pip install Django - run: python -m pip install -e .[test,selenium] - run: python -m pytest -m selenium - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 From 12e2d60e6dd2d022918991e6e4d55e5930733ccc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 05:31:05 +0000 Subject: [PATCH 4/5] Bump bandit from 1.7.10 to 1.8.0 Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.10 to 1.8.0. - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](https://github.com/PyCQA/bandit/compare/1.7.10...1.8.0) --- updated-dependencies: - dependency-name: bandit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- linter-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter-requirements.txt b/linter-requirements.txt index 579f7bf6..2713c027 100644 --- a/linter-requirements.txt +++ b/linter-requirements.txt @@ -1,4 +1,4 @@ -bandit==1.7.10 +bandit==1.8.0 black==24.10.0 flake8==7.1.1 isort==5.13.2 From 352811bc354704f89460ffc5cf2e719df38c49bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marduk=20Bola=C3=B1os?= Date: Tue, 10 Dec 2024 17:29:44 +0100 Subject: [PATCH 5/5] Fix #297 -- Add Django admin' inline formset support (#300) As described in #249 and #297 django-select2 does not currently work with selects added dynamically in the Django admin. The solution was implemented in #249 and all credit should go to Jurrian Tromp. I only added a small correction: ```diff - jqRow.find('.select2-container').remove() + jqRow.find('.django-select2').parent().find('.select2-container').remove() ``` to only remove `.select2-container` when it is a sibling of `.django-select2`. Otherwise the wrong `.select2-container` might get deleted. --------- Co-authored-by: Johannes Maron --- django_select2/static/django_select2/django_select2.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django_select2/static/django_select2/django_select2.js b/django_select2/static/django_select2/django_select2.js index 01db20b5..935033d3 100644 --- a/django_select2/static/django_select2/django_select2.js +++ b/django_select2/static/django_select2/django_select2.js @@ -68,7 +68,11 @@ } $(function () { - $('.django-select2').djangoSelect2() + $('.django-select2').not('[name*=__prefix__]').djangoSelect2() + + document.addEventListener('formset:added', (event) => { + $(event.target).find('.django-select2').djangoSelect2() + }) }) return $.fn.djangoSelect2