Skip to content

Commit 084f153

Browse files
author
Julien Nakache
committed
fix comments
1 parent 76613a7 commit 084f153

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

graphene_sqlalchemy/fields.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ def __init__(self, type, *args, **kwargs):
9999

100100

101101
def default_connection_field_factory(relationship, registry):
102-
log.warn(
103-
'This is deprecated and will be removed in the next '
104-
'major version. Use TODO instead.'
105-
)
106102
model = relationship.mapper.entity
107103
model_type = registry.get_type_for_model(model)
108104
return createConnectionField(model_type)
@@ -115,15 +111,15 @@ def default_connection_field_factory(relationship, registry):
115111
def createConnectionField(_type):
116112
log.warn(
117113
'createConnectionField is deprecated and will be removed in the next '
118-
'major version. Use TODO instead.'
114+
'major version. Use SQLAlchemyObjectType.Meta.connection_field_factory instead.'
119115
)
120116
return __connectionFactory(_type)
121117

122118

123119
def registerConnectionFieldFactory(factoryMethod):
124120
log.warn(
125121
'registerConnectionFieldFactory is deprecated and will be removed in the next '
126-
'major version. Use TODO instead.'
122+
'major version. Use SQLAlchemyObjectType.Meta.connection_field_factory instead.'
127123
)
128124
global __connectionFactory
129125
__connectionFactory = factoryMethod
@@ -132,7 +128,7 @@ def registerConnectionFieldFactory(factoryMethod):
132128
def unregisterConnectionFieldFactory():
133129
log.warn(
134130
'registerConnectionFieldFactory is deprecated and will be removed in the next '
135-
'major version. Use TODO instead.'
131+
'major version. Use SQLAlchemyObjectType.Meta.connection_field_factory instead.'
136132
)
137133
global __connectionFactory
138134
__connectionFactory = UnsortedSQLAlchemyConnectionField

0 commit comments

Comments
 (0)