Skip to content
Snippets Groups Projects
Verified Commit 3903ad0f authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: add permission to edit schedule default playlist id

parent dee702b7
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.13 on 2024-07-03 19:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("program", "0105_alter_host_options_alter_note_options_and_more"),
]
operations = [
migrations.AlterModelOptions(
name="schedule",
options={
"ordering": ("first_date", "start_time"),
"permissions": [
("edit__schedule__default_playlist_id", "Can edit default media source")
],
},
),
]
......@@ -424,6 +424,9 @@ class Schedule(models.Model):
class Meta:
ordering = ("first_date", "start_time")
permissions = [
("edit__schedule__default_playlist_id", "Can edit default media source"),
]
def __str__(self):
WEEKDAYS = ["MO", "TU", "WE", "TH", "FR", "SA", "SU"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment