From e5a8eff4aca8c2aa9089513bc411bd31ddf7e55c Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sun, 14 Aug 2016 13:44:56 -0700 Subject: [PATCH] Fixed starwars example --- graphene-django/examples/starwars/schema.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphene-django/examples/starwars/schema.py b/graphene-django/examples/starwars/schema.py index f708b6fc..586142c0 100644 --- a/graphene-django/examples/starwars/schema.py +++ b/graphene-django/examples/starwars/schema.py @@ -11,10 +11,11 @@ from .models import ( ) -class Ship(DjangoNode, DjangoObjectType): +class Ship(DjangoObjectType): class Meta: model = ShipModel + interfaces = (DjangoNode, ) @classmethod def get_node(cls, id, context, info): @@ -29,10 +30,11 @@ class Character(DjangoObjectType): model = CharacterModel -class Faction(DjangoNode, DjangoObjectType): +class Faction(DjangoObjectType): class Meta: model = FactionModel + interfaces = (DjangoNode, ) @classmethod def get_node(cls, id, context, info):