mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 22:58:28 +02:00
Blacked the code
This commit is contained in:
parent
b6fc0051fa
commit
62ca3bd736
279 changed files with 8861 additions and 9527 deletions
|
@ -3,16 +3,14 @@ from dynamic_preferences.registries import global_preferences_registry
|
|||
|
||||
from funkwhale_api.common import preferences
|
||||
|
||||
playlists = types.Section('playlists')
|
||||
playlists = types.Section("playlists")
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class MaxTracks(preferences.DefaultFromSettingMixin, types.IntegerPreference):
|
||||
show_in_api = True
|
||||
section = playlists
|
||||
name = 'max_tracks'
|
||||
verbose_name = 'Max tracks per playlist'
|
||||
setting = 'PLAYLISTS_MAX_TRACKS'
|
||||
field_kwargs = {
|
||||
'required': False,
|
||||
}
|
||||
name = "max_tracks"
|
||||
verbose_name = "Max tracks per playlist"
|
||||
setting = "PLAYLISTS_MAX_TRACKS"
|
||||
field_kwargs = {"required": False}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue