mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 13:09:17 +02:00
14 lines
404 B
Python
14 lines
404 B
Python
from dynamic_preferences import types
|
|
from dynamic_preferences.registries import global_preferences_registry
|
|
|
|
playlists = types.Section("playlists")
|
|
|
|
|
|
@global_preferences_registry.register
|
|
class MaxTracks(types.IntegerPreference):
|
|
show_in_api = True
|
|
section = playlists
|
|
name = "max_tracks"
|
|
default = 250
|
|
verbose_name = "Max tracks per playlist"
|
|
field_kwargs = {"required": False}
|