Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/concepts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ class ConceptMinimalSerializerRecursive(ConceptAbstractSerializer):
class Meta:
model = Concept
fields = ConceptAbstractSerializer.Meta.fields + (
'id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired')
'id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired',
'concept_class', 'datatype')

def __init__(self, *args, **kwargs):
if 'mappings' in self.fields:
Expand Down
12 changes: 8 additions & 4 deletions core/integration_tests/tests_concepts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,8 @@ def test_get_200_for_source_version(self): # pylint: disable=too-many-statement
entry = response.data['entry']
self.assertCountEqual(
list(entry.keys()),
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums']
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums',
'concept_class', 'datatype']
)
self.assertEqual(entry['id'], concept1.mnemonic)
self.assertEqual(entry['type'], 'Concept')
Expand Down Expand Up @@ -1826,7 +1827,8 @@ def test_get_200_for_source_version(self): # pylint: disable=too-many-statement
entry = response.data['entry']
self.assertCountEqual(
list(entry.keys()),
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums']
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums',
'concept_class', 'datatype']
)
self.assertEqual(entry['id'], concept2.mnemonic)
self.assertEqual(entry['type'], 'Concept')
Expand Down Expand Up @@ -1868,7 +1870,8 @@ def test_get_200_for_source_version(self): # pylint: disable=too-many-statement
entry = response.data['entry']
self.assertCountEqual(
list(entry.keys()),
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums']
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums',
'concept_class', 'datatype']
)
self.assertEqual(entry['id'], concept1.mnemonic)
self.assertEqual(entry['type'], 'Concept')
Expand All @@ -1883,7 +1886,8 @@ def test_get_200_for_source_version(self): # pylint: disable=too-many-statement
entry = response.data['entry']
self.assertCountEqual(
list(entry.keys()),
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums']
['id', 'type', 'url', 'version_url', 'terminal', 'entries', 'display_name', 'retired', 'checksums',
'concept_class', 'datatype']
)
self.assertEqual(entry['id'], concept2.mnemonic)
self.assertEqual(entry['type'], 'Concept')
Expand Down
Loading