diff --git a/program/migrations/0097_alter_host_options.py b/program/migrations/0097_alter_host_options.py new file mode 100644 index 0000000000000000000000000000000000000000..0a08f37dd1960e268306364f0c95fe09a79cd06a --- /dev/null +++ b/program/migrations/0097_alter_host_options.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.13 on 2024-06-11 19:02 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("program", "0096_alter_category_description_alter_category_is_active_and_more"), + ] + + operations = [ + migrations.AlterModelOptions( + name="host", + options={ + "ordering": ("name",), + "permissions": [ + ("edit__host__biography", "Can edit biography field"), + ("edit__host__email", "Can edit email field"), + ("edit__host__image", "Can edit image field"), + ("edit__host__name", "Can edit name field"), + ("edit__host__owners", "Can edit owners field"), + ("update_host", "Can update host"), + ], + }, + ), + ] diff --git a/program/models.py b/program/models.py index 16886c5b7af4e30d50ed4b20fb1d2c95663fa78b..80070c35c397c4edd174b83d72c33f801d490036 100644 --- a/program/models.py +++ b/program/models.py @@ -180,8 +180,11 @@ class Host(models.Model): class Meta: ordering = ("name",) permissions = [ - ("edit__host__biography", "Can edit Host biography field"), - ("edit__host__name", "Can edit Host name field"), + ("edit__host__biography", "Can edit biography field"), + ("edit__host__email", "Can edit email field"), + ("edit__host__image", "Can edit image field"), + ("edit__host__name", "Can edit name field"), + ("edit__host__owners", "Can edit owners field"), # overrides ownership ("update_host", "Can update host"), ]