我们从Python开源项目中,提取了以下22个代码示例,用于说明如何使用google.appengine.ext.ndb.FloatProperty()。
def convert_FloatProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.FloatProperty``.""" return f.FloatField(**kwargs)
def convert_FloatProperty(self, model, prop, kwargs): """Returns a form field for a ``ndb.FloatProperty``.""" if prop._code_name == 'sort': return None return f.FloatField(**kwargs)
def testFloatProperty_shouldConvertToString(self): self.__assert_conversion(ndb.FloatProperty, graphene.Float)