1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#11541: Fix object_types queryset on TagSerializer

This commit is contained in:
Jeremy Stretch
2023-08-09 10:32:08 -04:00
parent 4e8a3e0a6f
commit 5dce5563ab

View File

@ -239,7 +239,7 @@ class BookmarkSerializer(ValidatedModelSerializer):
class TagSerializer(ValidatedModelSerializer): class TagSerializer(ValidatedModelSerializer):
url = serializers.HyperlinkedIdentityField(view_name='extras-api:tag-detail') url = serializers.HyperlinkedIdentityField(view_name='extras-api:tag-detail')
object_types = ContentTypeField( object_types = ContentTypeField(
queryset=ContentType.objects.filter(FeatureQuery('custom_fields').get_query()), queryset=ContentType.objects.filter(FeatureQuery('tags').get_query()),
many=True, many=True,
required=False required=False
) )