Files
vrobbler/vrobbler/apps/locations/admin.py
Colin Powell 3014a30616
All checks were successful
build & deploy / test (push) Successful in 1m49s
build & deploy / build-and-deploy (push) Successful in 30s
[locations] Add weather fetching to birds and moods
2026-05-20 13:19:54 -04:00

23 lines
442 B
Python

from django.contrib import admin
from locations.models import GeoLocation
from scrobbles.admin import ScrobbleInline
@admin.register(GeoLocation)
class GeoLocationAdmin(admin.ModelAdmin):
date_hierarchy = "created"
list_display = (
"created",
"lat",
"lon",
"title",
"altitude",
)
ordering = ("-created",)
search_fields = ("title",)
inlines = [
ScrobbleInline,
]