Add basic location tracking
This commit is contained in:
35
vrobbler/apps/locations/admin.py
Normal file
35
vrobbler/apps/locations/admin.py
Normal file
@ -0,0 +1,35 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from locations.models import GeoLocation, RawGeoLocation
|
||||
|
||||
from scrobbles.admin import ScrobbleInline
|
||||
|
||||
|
||||
@admin.register(GeoLocation)
|
||||
class GeoLocationAdmin(admin.ModelAdmin):
|
||||
date_hierarchy = "created"
|
||||
list_display = (
|
||||
"lat",
|
||||
"lon",
|
||||
"title",
|
||||
"altitude",
|
||||
)
|
||||
ordering = (
|
||||
"lat",
|
||||
"lon",
|
||||
)
|
||||
|
||||
|
||||
@admin.register(RawGeoLocation)
|
||||
class RawGeoLocationAdmin(admin.ModelAdmin):
|
||||
date_hierarchy = "created"
|
||||
list_display = (
|
||||
"lat",
|
||||
"lon",
|
||||
"altitude",
|
||||
"speed",
|
||||
)
|
||||
ordering = (
|
||||
"lat",
|
||||
"lon",
|
||||
)
|
||||
Reference in New Issue
Block a user