From a1ff5737f84121cf521b53972cae1a8274acf58a Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Tue, 11 Jun 2024 15:18:20 -0400 Subject: [PATCH] fix: nitpicking human-readable permission names --- program/migrations/0099_alter_show_options.py | 44 +++++++++++++++++++ program/models.py | 4 +- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 program/migrations/0099_alter_show_options.py diff --git a/program/migrations/0099_alter_show_options.py b/program/migrations/0099_alter_show_options.py new file mode 100644 index 00000000..2e872248 --- /dev/null +++ b/program/migrations/0099_alter_show_options.py @@ -0,0 +1,44 @@ +# Generated by Django 4.2.13 on 2024-06-11 19:16 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0098_alter_userprofile_options"), + ] + + operations = [ + migrations.AlterModelOptions( + name="show", + options={ + "ordering": ("slug",), + "permissions": [ + ("display__show__internal_note", "Can display internal note field"), + ("edit__show__categories", "Can edit category field"), + ("edit__show__cba_series_id", "Can edit cba series id field"), + ("edit__show__default_playlist", "Can edit default playlist field"), + ("edit__show__description", "Can edit description field"), + ("edit__show__email", "Can edit email field"), + ("edit__show__funding_categories", "Can edit funding category field"), + ("edit__show__hosts", "Can edit hosts field"), + ("edit__show__image", "Can edit image field"), + ("edit__show__internal_note", "Can edit internal note field"), + ("edit__show__is_active", "Can edit is active field"), + ("edit__show__languages", "Can edit language field"), + ("edit__show__links", "Can edit links field"), + ("edit__show__logo", "Can edit logo field"), + ("edit__show__music_focuses", "Can edit music focus field"), + ("edit__show__name", "Can edit name field"), + ("edit__show__owners", "Can edit owners field"), + ("edit__show__predecessor", "Can edit predecessor field"), + ("edit__show__short_description", "Can edit short description field"), + ("edit__show__slug", "Can edit slug field"), + ("edit__show__topics", "Can edit topic field"), + ("edit__show__type", "Can edit type field"), + ("update_show", "Can update show"), + ], + }, + ), + ] diff --git a/program/models.py b/program/models.py index 3ee9ce58..f306e74f 100644 --- a/program/models.py +++ b/program/models.py @@ -272,7 +272,7 @@ class Show(models.Model): ("display__show__internal_note", "Can display internal note field"), ("edit__show__categories", "Can edit category field"), ("edit__show__cba_series_id", "Can edit cba series id field"), - ("edit__show__default_playlist", "Can edit default playlist id field"), + ("edit__show__default_playlist", "Can edit default playlist field"), ("edit__show__description", "Can edit description field"), ("edit__show__email", "Can edit email field"), ("edit__show__funding_categories", "Can edit funding category field"), @@ -287,7 +287,7 @@ class Show(models.Model): ("edit__show__name", "Can edit name field"), ("edit__show__owners", "Can edit owners field"), ("edit__show__predecessor", "Can edit predecessor field"), - ("edit__show__short_description", "Can edit short_description field"), + ("edit__show__short_description", "Can edit short description field"), ("edit__show__slug", "Can edit slug field"), ("edit__show__topics", "Can edit topic field"), ("edit__show__type", "Can edit type field"), -- GitLab