From 3c82c6f6455ed1766637f1dacf26428031c43ce6 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 22 Jul 2024 16:05:55 -0400 Subject: [PATCH] fix: remove last uses of "topics" in permission names --- program/migrations/0114_alter_note_options.py | 34 +++++++++++++++++++ program/models.py | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 program/migrations/0114_alter_note_options.py diff --git a/program/migrations/0114_alter_note_options.py b/program/migrations/0114_alter_note_options.py new file mode 100644 index 00000000..87dd9456 --- /dev/null +++ b/program/migrations/0114_alter_note_options.py @@ -0,0 +1,34 @@ +# Generated by Django 4.2.13 on 2024-07-22 20:04 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0113_alter_note_contributors_alter_timeslot_playlist_id"), + ] + + operations = [ + migrations.AlterModelOptions( + name="note", + options={ + "ordering": ("timeslot",), + "permissions": [ + ("edit__note__cba_id", "Can edit CBA id field"), + ("edit__note__content", "Can edit content field"), + ("edit__note__contributors", "Can edit contributor field"), + ("edit__note__image", "Can edit image field"), + ("edit__note__languages", "Can edit language field"), + ("edit__note__links", "Can edit links field"), + ("edit__note__playlist", "Can edit playlist field"), + ("edit__note__summary", "Can edit summary field"), + ("edit__note__tags", "Can edit tags field"), + ("edit__note__title", "Can edit title field"), + ("edit__note__topics", "Can edit topic field"), + ("create_note", "Can create note"), + ("update_note", "Can update note"), + ], + }, + ), + ] diff --git a/program/models.py b/program/models.py index 493de37b..9898b108 100644 --- a/program/models.py +++ b/program/models.py @@ -519,7 +519,7 @@ class Note(models.Model): ("edit__note__summary", "Can edit summary field"), ("edit__note__tags", "Can edit tags field"), ("edit__note__title", "Can edit title field"), - ("edit__note__topics", "Can edit topics field"), + ("edit__note__topics", "Can edit topic field"), # overrides ownership ("create_note", "Can create note"), ("update_note", "Can update note"), -- GitLab