[scrobbles] Add PersonScrobble junction table
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from django.contrib import admin
|
||||
from people.models import Person
|
||||
from people.models import Person, PersonScrobble
|
||||
|
||||
|
||||
@admin.register(Person)
|
||||
@ -8,3 +8,11 @@ class PersonAdmin(admin.ModelAdmin):
|
||||
list_display = ("name", "bgg_username", "bgstats_id")
|
||||
ordering = ("-created",)
|
||||
search_fields = ("name",)
|
||||
|
||||
|
||||
@admin.register(PersonScrobble)
|
||||
class PersonScrobbleAdmin(admin.ModelAdmin):
|
||||
list_display = ("person", "user", "scrobble", "created")
|
||||
list_filter = ("created",)
|
||||
ordering = ("-created",)
|
||||
raw_id_fields = ("person", "user", "scrobble")
|
||||
|
||||
Reference in New Issue
Block a user