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

feat: add create_playlist & update_playlist permissions

parent ed2393e9
No related branches found
No related tags found
1 merge request!59Add playlists
# Generated by Django 4.2.16 on 2024-11-01 19:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("program", "0122_remove_timeslot_playlist_id_timeslot_playlist"),
]
operations = [
migrations.AlterModelOptions(
name="playlist",
options={
"permissions": [
("add__file", "Can add file media-source"),
("add__import", "Can add import media-source"),
("add__line", "Can add line media-source"),
("add__m3ufile", "Can add m3u media-source"),
("add__stream", "Can add stream media-source"),
("create__playlist", "Can create playlist"),
("update__playlist", "Can update playlist"),
]
},
),
]
...@@ -595,6 +595,9 @@ class Playlist(models.Model): ...@@ -595,6 +595,9 @@ class Playlist(models.Model):
("add__line", "Can add line media-source"), ("add__line", "Can add line media-source"),
("add__m3ufile", "Can add m3u media-source"), ("add__m3ufile", "Can add m3u media-source"),
("add__stream", "Can add stream media-source"), ("add__stream", "Can add stream media-source"),
# overrules ownership
("create__playlist", "Can create playlist"),
("update__playlist", "Can update playlist"),
] ]
def __str__(self): def __str__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment