'Returns the field type that would likely be associated with each
Django type.'

@classmethod
def api_field_from_django_field(cls, f, default=fields.CharField):

    result = default
    internal_type = f.get_internal_type()
    if (internal_type == u'DateField'):
        result = fields.DateField
    elif (internal_type == u'DateTimeField'):
        result = fields.DateTimeField
    elif (internal_type in (u'BooleanField', u'NullBooleanField')):
        result = fields.BooleanField
    elif (internal_type in (u'FloatField',)):
        result = fields.FloatField
    elif (internal_type in (u'DecimalField',)):
        result = fields.DecimalField
    elif (internal_type in (u'IntegerField', u'PositiveIntegerField', u'PositiveSmallIntegerField', u'SmallIntegerField', u'AutoField', u'BigIntegerField')):
        result = fields.IntegerField
    elif (internal_type in (u'FileField', u'ImageField')):
        result = fields.FileField
    elif (internal_type == u'TimeField'):
        result = fields.TimeField
    return result
