mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:09:16 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -5,44 +5,28 @@ from . import models
|
|||
|
||||
@admin.register(models.Radio)
|
||||
class RadioAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
'user', 'name', 'is_public', 'creation_date', 'config']
|
||||
list_select_related = [
|
||||
'user',
|
||||
]
|
||||
list_filter = [
|
||||
'is_public',
|
||||
]
|
||||
search_fields = ['name', 'description']
|
||||
list_display = ["user", "name", "is_public", "creation_date", "config"]
|
||||
list_select_related = ["user"]
|
||||
list_filter = ["is_public"]
|
||||
search_fields = ["name", "description"]
|
||||
|
||||
|
||||
@admin.register(models.RadioSession)
|
||||
class RadioSessionAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
'user',
|
||||
'custom_radio',
|
||||
'radio_type',
|
||||
'creation_date',
|
||||
'related_object']
|
||||
"user",
|
||||
"custom_radio",
|
||||
"radio_type",
|
||||
"creation_date",
|
||||
"related_object",
|
||||
]
|
||||
|
||||
list_select_related = [
|
||||
'user',
|
||||
'custom_radio'
|
||||
]
|
||||
list_filter = [
|
||||
'radio_type',
|
||||
]
|
||||
list_select_related = ["user", "custom_radio"]
|
||||
list_filter = ["radio_type"]
|
||||
|
||||
|
||||
@admin.register(models.RadioSessionTrack)
|
||||
class RadioSessionTrackAdmin(admin.ModelAdmin):
|
||||
list_display = [
|
||||
'id',
|
||||
'session',
|
||||
'position',
|
||||
'track',]
|
||||
list_display = ["id", "session", "position", "track"]
|
||||
|
||||
list_select_related = [
|
||||
'track',
|
||||
'session'
|
||||
]
|
||||
list_select_related = ["track", "session"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue