diff --git a/program/migrations/0114_alter_note_options.py b/program/migrations/0114_alter_note_options.py new file mode 100644 index 0000000000000000000000000000000000000000..87dd945655668a00dd3086955b3453f1c0fe4248 --- /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 493de37bf5db050f2d5cbd0c21da8ccca06931dd..9898b108a14f9688adfdd33e4fc5cdfbadfd586d 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"),