File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ def __init__(self):
6
6
self ._registry_composites = {}
7
7
8
8
def register (self , cls ):
9
- from .types import SQLAlchemyObjectTypeMeta
10
- assert issubclass (type ( cls ), SQLAlchemyObjectTypeMeta ), (
11
- 'Only classes of type SQLAlchemyObjectTypeMeta can be registered, ' ,
9
+ from .types import SQLAlchemyObjectType
10
+ assert issubclass (cls , SQLAlchemyObjectType ), (
11
+ 'Only classes of type SQLAlchemyObjectType can be registered, ' ,
12
12
'received "{}"'
13
13
).format (cls .__name__ )
14
14
assert cls ._meta .registry == self , 'Registry for a Model have to match.'
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class Meta:
270
270
271
271
class CreateArticle (graphene .Mutation ):
272
272
273
- class Input :
273
+ class Arguments :
274
274
headline = graphene .String ()
275
275
reporter_id = graphene .ID ()
276
276
Original file line number Diff line number Diff line change 4
4
import six
5
5
6
6
from ..registry import Registry
7
- from ..types import SQLAlchemyObjectType , SQLAlchemyObjectTypeMeta
7
+ from ..types import SQLAlchemyObjectType
8
8
from .models import Article , Reporter
9
9
10
10
registry = Registry ()
You can’t perform that action at this time.
0 commit comments