diff --git a/program/migrations/0087_playlist.py b/program/migrations/0087_playlist.py new file mode 100644 index 0000000000000000000000000000000000000000..ded9bd2316aff2e86b60191d20eeb8f001c674b8 --- /dev/null +++ b/program/migrations/0087_playlist.py @@ -0,0 +1,32 @@ +# 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"), + ], + }, + ), + ] diff --git a/program/models.py b/program/models.py index 64ebe6b22fa2799751a97e9abf2223227ce8d4d0..5217837d807e0d84fc32a995edfd52ea1771e55b 100644 --- a/program/models.py +++ b/program/models.py @@ -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"), + ]