mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 20:41:55 +02:00
See #1100: clean compat and XXX in the code
This commit is contained in:
parent
b7f1c02c6f
commit
e271851f67
67 changed files with 203 additions and 328 deletions
|
@ -1,16 +1,14 @@
|
|||
from dynamic_preferences import types
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
from funkwhale_api.common import preferences
|
||||
|
||||
playlists = types.Section("playlists")
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class MaxTracks(preferences.DefaultFromSettingMixin, types.IntegerPreference):
|
||||
class MaxTracks(types.IntegerPreference):
|
||||
show_in_api = True
|
||||
section = playlists
|
||||
name = "max_tracks"
|
||||
default = 250
|
||||
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