Sfoglia il codice sorgente

Update admin for geolocations

Colin Powell 1 anno fa
parent
commit
b0574ecf80
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      vrobbler/apps/locations/admin.py

+ 2 - 4
vrobbler/apps/locations/admin.py

@@ -9,15 +9,13 @@ from scrobbles.admin import ScrobbleInline
 class GeoLocationAdmin(admin.ModelAdmin):
     date_hierarchy = "created"
     list_display = (
+        "created",
         "lat",
         "lon",
         "title",
         "altitude",
     )
-    ordering = (
-        "lat",
-        "lon",
-    )
+    ordering = ("-created",)
     inlines = [
         ScrobbleInline,
     ]