Add the id field to the default summary fields

This is to support the UI.

ref: #1063
This commit is contained in:
Matthew Jones 2016-02-26 11:30:34 -05:00
parent 3228b41eea
commit a9bf29d2a7

View File

@ -50,7 +50,7 @@ from awx.fact.models import * # noqa
logger = logging.getLogger('awx.api.serializers')
# Fields that should be summarized regardless of object type.
DEFAULT_SUMMARY_FIELDS = ('name', 'description')# , 'created_by', 'modified_by')#, 'type')
DEFAULT_SUMMARY_FIELDS = ('id', 'name', 'description')# , 'created_by', 'modified_by')#, 'type')
# Keys are fields (foreign keys) where, if found on an instance, summary info
# should be added to the serialized data. Values are a tuple of field names on