Closes #15235: Use primary serializers for REST API "brief" mode (#15246)

* Use primary serializers for brief mode

* Remove BriefModeMixin

* Correct ModuleBayTest brief_fields (see #15243)
This commit is contained in:
Jeremy Stretch
2024-02-23 14:21:25 -05:00
committed by GitHub
parent ca2ee436a0
commit 3f3bcc5eb5
13 changed files with 129 additions and 44 deletions

View File

@@ -1755,7 +1755,7 @@ class RearPortTest(APIViewTestCases.APIViewTestCase):
class ModuleBayTest(APIViewTestCases.APIViewTestCase):
model = ModuleBay
brief_fields = ['display', 'id', 'module', 'name', 'url']
brief_fields = ['display', 'id', 'installed_module', 'name', 'url']
bulk_update_data = {
'description': 'New description',
}