20 lines
522 B
Python
20 lines
522 B
Python
import graphene
|
|
|
|
from vbv_lernwelt.core.utils import get_django_content_type
|
|
|
|
|
|
class CoursePageInterface(graphene.Interface):
|
|
id = graphene.ID()
|
|
title = graphene.String()
|
|
slug = graphene.String()
|
|
content_type = graphene.String()
|
|
live = graphene.Boolean()
|
|
translation_key = graphene.String()
|
|
frontend_url = graphene.String()
|
|
|
|
def resolve_frontend_url(self, info):
|
|
return self.get_frontend_url()
|
|
|
|
def resolve_content_type(self, info):
|
|
return get_django_content_type(self)
|