mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 22:12:22 +01:00
Volume control from the web interface.
This commit is contained in:
@ -63,6 +63,7 @@ class Queue(models.Model):
|
||||
('can_skip', 'Can skip the currently playing song'),
|
||||
('can_move', 'Can move all songs in the queue'),
|
||||
('can_cancel', 'Can cancel all songs in the queue'),
|
||||
('can_control_volume', 'Can control the volume of Marietje'),
|
||||
)
|
||||
|
||||
name = models.TextField()
|
||||
@ -138,5 +139,10 @@ class Queue(models.Model):
|
||||
return self.name
|
||||
|
||||
|
||||
|
||||
|
||||
class QueueCommand(models.Model):
|
||||
queue = models.ForeignKey(
|
||||
Queue,
|
||||
on_delete=models.CASCADE,
|
||||
)
|
||||
command = models.TextField()
|
||||
executed = models.BooleanField(default=False)
|
||||
|
||||
Reference in New Issue
Block a user