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

Reformat

parent b21582d6
No related branches found
No related tags found
1 merge request!1594Resolve "Vue: Rework Person Create / Edit"
Pipeline #196317 failed
......@@ -60,7 +60,14 @@ import AdditionalImage from "./AdditionalImage.vue";
<!-- eslint-disable-next-line vue/valid-v-slot -->
<template #guardians.field="{ attrs, on }">
<person-field v-bind="attrs" v-on="on" multiple chips deletable-chips :server-search="true" />
<person-field
v-bind="attrs"
v-on="on"
multiple
chips
deletable-chips
:server-search="true"
/>
</template>
<!-- eslint-disable-next-line vue/valid-v-slot -->
......
......@@ -19,7 +19,11 @@ const permissionsMixin = {
checkObjectPermission(name, objId, objType, appLabel) {
if (this.$root.objectPermissions) {
const permissionItem = this.$root.objectPermissions.find(
(p) => p.name === name && p.objId === objId && p.objType === objType && p.appLabel === appLabel,
(p) =>
p.name === name &&
p.objId === objId &&
p.objType === objType &&
p.appLabel === appLabel,
);
if (permissionItem) {
return permissionItem.result;
......
......@@ -359,7 +359,9 @@ class Query(graphene.ObjectType):
results = []
for object_permission_item in input:
ct = ContentType.objects.get(app_label=object_permission_item.app_label, model=object_permission_item.obj_type)
ct = ContentType.objects.get(
app_label=object_permission_item.app_label, model=object_permission_item.obj_type
)
ct_class = ct.model_class()
check_obj = ct_class.objects.get(id=object_permission_item.obj_id)
......
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