mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-27 12:07:04 -05:00
refactor: Relocate ride services from services.py to services_core.py and refine admin display fields.
This commit is contained in:
@@ -101,7 +101,7 @@ class ParkLocationAdmin(QueryOptimizationMixin, GISModelAdmin):
|
||||
"country",
|
||||
"street_address",
|
||||
)
|
||||
readonly_fields = ("latitude", "longitude", "coordinates", "created_at", "updated_at")
|
||||
readonly_fields = ("latitude", "longitude", "coordinates")
|
||||
autocomplete_fields = ["park"]
|
||||
list_per_page = 50
|
||||
show_full_result_count = False
|
||||
@@ -156,13 +156,7 @@ class ParkLocationAdmin(QueryOptimizationMixin, GISModelAdmin):
|
||||
"description": "OpenStreetMap identifiers for data synchronization.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"Metadata",
|
||||
{
|
||||
"fields": ("created_at", "updated_at"),
|
||||
"classes": ("collapse",),
|
||||
},
|
||||
),
|
||||
|
||||
)
|
||||
|
||||
@admin.display(description="Park")
|
||||
@@ -234,7 +228,7 @@ class ParkAdmin(
|
||||
"operator__name",
|
||||
)
|
||||
readonly_fields = ("created_at", "updated_at", "ride_count", "average_rating")
|
||||
autocomplete_fields = ["operator", "property_owner", "banner_image", "card_image"]
|
||||
autocomplete_fields = ["operator", "property_owner"]
|
||||
date_hierarchy = "created_at"
|
||||
ordering = ("-created_at",)
|
||||
inlines = [ParkLocationInline, ParkAreaInline]
|
||||
|
||||
Reference in New Issue
Block a user