This commit is contained in:
dczech 2017-03-21 08:01:04 +00:00 committed by GitHub
commit cc9b6bf39d

View File

@ -541,7 +541,8 @@ class SchemaGenerator(object):
elif model_field is not None and model_field.primary_key: elif model_field is not None and model_field.primary_key:
description = get_pk_description(model, model_field) description = get_pk_description(model, model_field)
if isinstance(model_field, models.AutoField): # BigAutoField is outside of Integer range
if isinstance(model_field, models.AutoField) and not isinstance(model_field, models.BigAutoField):
schema_cls = coreschema.Integer schema_cls = coreschema.Integer
field = coreapi.Field( field = coreapi.Field(