diff --git a/program/migrations/0117_alter_timeslot_options.py b/program/migrations/0117_alter_timeslot_options.py new file mode 100644 index 0000000000000000000000000000000000000000..728fc6ee11c60f6e3e77d9cd7a8af45c212f53d3 --- /dev/null +++ b/program/migrations/0117_alter_timeslot_options.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.16 on 2024-10-08 21:13 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0116_alter_note_image_alter_notelink_type_and_more"), + ] + + operations = [ + migrations.AlterModelOptions( + name="timeslot", + options={ + "ordering": ("start", "end"), + "permissions": [ + ("edit__timeslot__memo", "Can edit memo field"), + ("edit__timeslot__playlist_id", "Can edit media-source"), + ("edit__timeslot__repetition_of", "Can edit repetition of field"), + ("update_timeslot", "Can update timeslot"), + ], + }, + ), + ] diff --git a/program/models.py b/program/models.py index e8e32fcd116c7a865db3d963240f5881bfb99ca1..6984ea9a0dd150487e6a60cd7eedc9673009b79e 100644 --- a/program/models.py +++ b/program/models.py @@ -464,6 +464,8 @@ class TimeSlot(models.Model): ("edit__timeslot__memo", "Can edit memo field"), ("edit__timeslot__playlist_id", "Can edit media-source"), ("edit__timeslot__repetition_of", "Can edit repetition of field"), + # overrides ownership + ("update_timeslot", "Can update timeslot"), ] def __str__(self):