Closes #9396 - Added ability to query modules by module bay & installed_modules for module bay REST API endpoint

This commit is contained in:
Hunter Johnston 2022-06-20 22:25:11 -04:00
parent 79b3bc6d12
commit 9d848a413c
2 changed files with 2 additions and 1 deletions

View File

@ -281,6 +281,7 @@ class ModuleNestedModuleBaySerializer(WritableNestedSerializer):
model = models.ModuleBay
fields = ['id', 'url', 'display', 'name']
class ModuleBayNestedModuleSerializer(WritableNestedSerializer):
url = serializers.HyperlinkedIdentityField(view_name='dcim-api:module-detail')