mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-21 07:11:08 -05:00
Refactor URL patterns for parks and rides; update context fields in models to use ForeignKey for pghistory.Context
This commit is contained in:
46
rides/park_urls.py
Normal file
46
rides/park_urls.py
Normal file
@@ -0,0 +1,46 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
app_name = "rides"
|
||||
|
||||
urlpatterns = [
|
||||
# Park-specific list views
|
||||
path("", views.RideListView.as_view(), name="ride_list"),
|
||||
path("create/", views.RideCreateView.as_view(), name="ride_create"),
|
||||
|
||||
# Park-specific detail views
|
||||
path(
|
||||
"<slug:ride_slug>/",
|
||||
views.RideDetailView.as_view(),
|
||||
name="ride_detail"
|
||||
),
|
||||
path(
|
||||
"<slug:ride_slug>/update/",
|
||||
views.RideUpdateView.as_view(),
|
||||
name="ride_update"
|
||||
),
|
||||
|
||||
# Search endpoints
|
||||
path(
|
||||
"search/manufacturers/",
|
||||
views.search_manufacturers,
|
||||
name="search_manufacturers"
|
||||
),
|
||||
path(
|
||||
"search/designers/",
|
||||
views.search_designers,
|
||||
name="search_designers"
|
||||
),
|
||||
path(
|
||||
"search/models/",
|
||||
views.search_ride_models,
|
||||
name="search_ride_models"
|
||||
),
|
||||
|
||||
# HTMX endpoints
|
||||
path(
|
||||
"coaster-fields/",
|
||||
views.show_coaster_fields,
|
||||
name="coaster_fields"
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user