mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
Merge 9074e3e478
into 7d64cf568a
This commit is contained in:
commit
cc9b6bf39d
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user