Skip to content
Snippets Groups Projects
Commit 70741b74 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Rename create rule names in mutations

parent 6f549d5e
No related branches found
No related tags found
2 merge requests!4Resolve "Add permissions/rules",!2Frontend
......@@ -33,7 +33,7 @@ class EffortTypeType(
class EffortTypeBatchCreateMutation(SharedSecretBatchCreateMixin, BaseBatchCreateMutation):
class Meta:
model = EffortTypeModel
permissions = ("maka.create_efforttype_rule",)
permissions = ("maka.add_efforttype_rule",)
only_fields = (
"name",
"color",
......@@ -74,7 +74,7 @@ class EffortType(SharedSecretObjectType, PermissionsTypeMixin, DjangoFilterMixin
class EffortBatchCreateMutation(SharedSecretBatchCreateMixin, BaseBatchCreateMutation):
class Meta:
model = EffortModel
permissions = ("maka.create_effort_rule",)
permissions = ("maka.add_effort_rule",)
only_fields = (
"name",
"effort_type",
......
......@@ -30,7 +30,7 @@ class GradeType(SharedSecretObjectType, PermissionsTypeMixin, DjangoFilterMixin,
class GradeBatchCreateMutation(SharedSecretBatchCreateMixin, BaseBatchCreateMutation):
class Meta:
model = Grade
permissions = ("maka.create_grade_rule",)
permissions = ("maka.add_grade_rule",)
only_fields = (
"person",
"grade",
......
......@@ -32,7 +32,7 @@ class GradeSetType(
class GradeSetBatchCreateMutation(SharedSecretBatchCreateMixin, BaseBatchCreateMutation):
class Meta:
model = GradeSet
permissions = ("maka.create_gradeset_rule",)
permissions = ("maka.add_gradeset_rule",)
only_fields = ("name",)
......@@ -70,7 +70,7 @@ class GradeChoiceType(PermissionsTypeMixin, DjangoFilterMixin, DjangoObjectType)
class GradeChoiceBatchCreateMutation(BaseBatchCreateMutation):
class Meta:
model = GradeChoice
permissions = ("maka.create_gradechoice_rule",)
permissions = ("maka.add_gradechoice_rule",)
only_fields = (
"grade_set",
"name",
......
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