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;
|
||||
category_name: string;
|
||||
slug: string;
|
||||
filters: string[];
|
||||
profiles: string[];
|
||||
configuration: CourseConfiguration;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ class CourseObjectType(DjangoObjectType):
|
|||
graphene.NonNull(ActionCompetenceObjectType), required=True
|
||||
)
|
||||
configuration = graphene.Field(CourseConfigurationObjectType, required=True)
|
||||
filters = graphene.List(graphene.String)
|
||||
profiles = graphene.List(graphene.String)
|
||||
|
||||
class Meta:
|
||||
model = Course
|
||||
|
|
@ -127,7 +127,7 @@ class CourseObjectType(DjangoObjectType):
|
|||
return root.get_action_competences()
|
||||
|
||||
@staticmethod
|
||||
def resolve_filters(root: Course, info, **kwargs):
|
||||
def resolve_profiles(root: Course, info, **kwargs):
|
||||
return CourseProfile.objects.all().values_list("code", flat=True)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue