Add autocomplete functionality for parks: implement BaseAutocomplete class and integrate with forms

This commit is contained in:
pacnpal
2025-02-22 13:36:24 -05:00
parent 65f8aee1d7
commit 98bf01ed32
15 changed files with 633 additions and 130 deletions

15
uv.lock generated
View File

@@ -1,4 +1,5 @@
version = 1
revision = 1
requires-python = ">=3.13"
[[package]]
@@ -313,6 +314,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/9f/ec/0d68c022dac4a539cdd2cf8b2e23a034da9d6ef864e4bc324a5fe2b50c28/django_htmx-1.21.0-py3-none-any.whl", hash = "sha256:64bc31463017a80552b767bc216ee5700248fa72e7ccd2963495e69afbdb6abe", size = 6901 },
]
[[package]]
name = "django-htmx-autocomplete"
version = "1.0.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "django" },
]
sdist = { url = "https://files.pythonhosted.org/packages/66/57/fdae7ed31f2bd6586e3347f4d0dc9d5271c9d83d10ecf6a7b0d759a715dd/django_htmx_autocomplete-1.0.5.tar.gz", hash = "sha256:e4b5e5fa255858d16eb51576718ac64331a968e617bcac3ff0b70766e354ad80", size = 41127 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/ff/ed/a508ec85ba4cacf796920b7a1d3c6f71b9b2fda9a2b12fa551bada17a0d6/django_htmx_autocomplete-1.0.5-py3-none-any.whl", hash = "sha256:8fbc73cb617c9d2e3edc9b827776771dd34f57d13572e8742fe5dfa848298735", size = 52127 },
]
[[package]]
name = "django-oauth-toolkit"
version = "3.0.1"
@@ -912,6 +925,7 @@ dependencies = [
{ name = "django-cors-headers" },
{ name = "django-filter" },
{ name = "django-htmx" },
{ name = "django-htmx-autocomplete" },
{ name = "django-oauth-toolkit" },
{ name = "django-pghistory" },
{ name = "django-simple-history" },
@@ -946,6 +960,7 @@ requires-dist = [
{ name = "django-cors-headers", specifier = ">=4.3.1" },
{ name = "django-filter", specifier = ">=23.5" },
{ name = "django-htmx", specifier = ">=1.17.2" },
{ name = "django-htmx-autocomplete", specifier = ">=1.0.5" },
{ name = "django-oauth-toolkit", specifier = ">=3.0.1" },
{ name = "django-pghistory", specifier = ">=3.5.2" },
{ name = "django-simple-history", specifier = ">=3.5.0" },