forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
19 lines
545 B
Python
19 lines
545 B
Python
from django.contrib.auth.models import User
|
|
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
__all__ = ("UserSettings",)
|
|
|
|
|
|
class UserSettings(models.Model):
|
|
"""Store user's settings."""
|
|
|
|
user = models.OneToOneField(
|
|
User,
|
|
models.CASCADE,
|
|
verbose_name=_("User"),
|
|
related_name="aircox_settings",
|
|
)
|
|
tracklist_editor_columns = models.JSONField(_("Playlist Editor Columns"))
|
|
tracklist_editor_sep = models.CharField(_("Playlist Editor Separator"), max_length=16)
|