Skip to content
Snippets Groups Projects
Verified Commit 2e0b3270 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: writing human readable permission names is hadr :tm:

parent c3262246
No related branches found
No related tags found
No related merge requests found
Pipeline #8394 failed
......@@ -277,17 +277,17 @@ class Show(models.Model):
ordering = ("slug",)
permissions = [
("display__show__internal_note", "Can display internal note field"),
("edit__show__categories", "Can edit category field"),
("edit__show__categories", "Can edit categories field"),
("edit__show__cba_series_id", "Can edit cba series id field"),
("edit__show__default_playlist_id", "Can edit default media source"),
("edit__show__default_playlist_id", "Can edit default media-source"),
("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__funding_categories", "Can edit funding categories 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__languages", "Can edit languages field"),
("edit__show__links", "Can edit links field"),
("edit__show__logo", "Can edit logo field"),
("edit__show__music_focuses", "Can edit music focus field"),
......@@ -296,7 +296,7 @@ class Show(models.Model):
("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__topics", "Can edit topics field"),
("edit__show__type", "Can edit type field"),
# overrides ownership
("update_show", "Can update show"),
......@@ -430,7 +430,7 @@ class Schedule(models.Model):
class Meta:
ordering = ("first_date", "start_time")
permissions = [
("edit__schedule__default_playlist_id", "Can edit default media source"),
("edit__schedule__default_playlist_id", "Can edit default media-source"),
]
def __str__(self):
......@@ -457,7 +457,7 @@ class TimeSlot(models.Model):
ordering = ("start", "end")
permissions = [
("edit__timeslot__memo", "Can edit memo field"),
("edit__timeslot__playlist_id", "Can edit media source"),
("edit__timeslot__playlist_id", "Can edit media-source"),
("edit__timeslot__repetition_of", "Can edit repetition of field"),
]
......@@ -513,15 +513,15 @@ class Note(models.Model):
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__contributors", "Can edit contributors field"),
("edit__note__image", "Can edit image field"),
("edit__note__languages", "Can edit language field"),
("edit__note__languages", "Can edit languages 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"),
("edit__note__topics", "Can edit topics field"),
# overrides ownership
("create_note", "Can create note"),
("update_note", "Can update note"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment