mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 08:51:09 -05:00
Add autocomplete functionality for parks: implement BaseAutocomplete class and integrate with forms
This commit is contained in:
@@ -5,8 +5,8 @@ from rides.views import ParkSingleCategoryListView
|
||||
app_name = "parks"
|
||||
|
||||
urlpatterns = [
|
||||
# Park views
|
||||
path("", views.ParkListView.as_view(), name="park_list"),
|
||||
# Park views with autocomplete search
|
||||
path("", views_search.ParkSearchView.as_view(), name="park_list"),
|
||||
path("create/", views.ParkCreateView.as_view(), name="park_create"),
|
||||
|
||||
# Add park button endpoint (moved before park detail pattern)
|
||||
@@ -18,7 +18,7 @@ urlpatterns = [
|
||||
|
||||
# Areas and search endpoints for HTMX
|
||||
path("areas/", views.get_park_areas, name="get_park_areas"),
|
||||
path("suggestions/", views_search.suggest_parks, name="suggest_parks"),
|
||||
path("suggest_parks/", views_search.suggest_parks, name="suggest_parks"),
|
||||
|
||||
path("search/", views.search_parks, name="search_parks"),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user