mirror of
https://github.com/evgen-app/evg-app-back.git
synced 2025-02-17 01:10:33 +03:00
27 lines
546 B
Python
27 lines
546 B
Python
|
import graphene_django
|
||
|
from .models import Organisation, Role, Group, Teacher, Child
|
||
|
|
||
|
print(Teacher, Child)
|
||
|
|
||
|
class OrganisationType(graphene_django.DjangoObjectType):
|
||
|
class Meta:
|
||
|
model = Organisation
|
||
|
|
||
|
class RoleType(graphene_django.DjangoObjectType):
|
||
|
class Meta:
|
||
|
model = Role
|
||
|
|
||
|
|
||
|
class GroupType(graphene_django.DjangoObjectType):
|
||
|
class Meta:
|
||
|
model = Group
|
||
|
|
||
|
|
||
|
class TeacherType(graphene_django.DjangoObjectType):
|
||
|
class Meta:
|
||
|
model = Teacher
|
||
|
|
||
|
|
||
|
class ChildType(graphene_django.DjangoObjectType):
|
||
|
class Meta:
|
||
|
model = Child
|