Fixed #80: Added admin interface for radios, track files, favorites...

This commit is contained in:
Eliot Berriot 2018-02-27 23:01:55 +01:00
parent c89212379d
commit e13ac32370
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 113 additions and 3 deletions

View file

@ -6,3 +6,7 @@ from . import models
class ListeningAdmin(admin.ModelAdmin):
list_display = ['track', 'end_date', 'user', 'session_key']
search_fields = ['track__name', 'user__username']
list_select_related = [
'user',
'track'
]