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

feat: add permissions to edit Host email, image & owners fields

parent 2d22b865
No related branches found
No related tags found
No related merge requests found
# 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"),
],
},
),
]
...@@ -180,8 +180,11 @@ class Host(models.Model): ...@@ -180,8 +180,11 @@ class Host(models.Model):
class Meta: class Meta:
ordering = ("name",) ordering = ("name",)
permissions = [ permissions = [
("edit__host__biography", "Can edit Host biography field"), ("edit__host__biography", "Can edit biography field"),
("edit__host__name", "Can edit Host name 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 # overrides ownership
("update_host", "Can update host"), ("update_host", "Can update host"),
] ]
......
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