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

feat: add Playlist model and permissions

parent d7db9623
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.11 on 2024-04-02 16:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("program", "0086_set_contributors_language_topic"),
]
operations = [
migrations.CreateModel(
name="Playlist",
fields=[
(
"id",
models.AutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
],
options={
"permissions": [
("add__file", "Can add file media-source"),
("add__import", "Can add import media-source"),
("add__line", "Can add line media-source"),
("add__stream", "Can add stream media-source"),
],
},
),
]
......@@ -515,3 +515,13 @@ class UserProfile(models.Model):
def __str__(self):
return self.user.username
class Playlist(models.Model):
class Meta:
permissions = [
("add__file", "Can add file media-source"),
("add__import", "Can add import media-source"),
("add__line", "Can add line media-source"),
("add__stream", "Can add stream media-source"),
]
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