Rename 'filters' to 'profiles', to be more exact
This commit is contained in:
parent
09570f18c2
commit
bb1afd7205
|
|
@ -202,7 +202,7 @@ export interface Course {
|
||||||
title: string;
|
title: string;
|
||||||
category_name: string;
|
category_name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
filters: string[];
|
profiles: string[];
|
||||||
configuration: CourseConfiguration;
|
configuration: CourseConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ class CourseObjectType(DjangoObjectType):
|
||||||
graphene.NonNull(ActionCompetenceObjectType), required=True
|
graphene.NonNull(ActionCompetenceObjectType), required=True
|
||||||
)
|
)
|
||||||
configuration = graphene.Field(CourseConfigurationObjectType, required=True)
|
configuration = graphene.Field(CourseConfigurationObjectType, required=True)
|
||||||
filters = graphene.List(graphene.String)
|
profiles = graphene.List(graphene.String)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Course
|
model = Course
|
||||||
|
|
@ -127,7 +127,7 @@ class CourseObjectType(DjangoObjectType):
|
||||||
return root.get_action_competences()
|
return root.get_action_competences()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def resolve_filters(root: Course, info, **kwargs):
|
def resolve_profiles(root: Course, info, **kwargs):
|
||||||
return CourseProfile.objects.all().values_list("code", flat=True)
|
return CourseProfile.objects.all().values_list("code", flat=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue