Skip to content
Merged
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
2 changes: 2 additions & 0 deletions dojo/location/api/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from rest_framework.relations import PrimaryKeyRelatedField
from rest_framework.serializers import CharField

from dojo.api_helpers.serializers import BaseModelSerializer
Expand All @@ -13,6 +14,7 @@


class AbstractedLocationSerializer(BaseModelSerializer):
id = PrimaryKeyRelatedField(source="location.id", read_only=True)
string = CharField(source="location.location_value", read_only=True)
type = CharField(source="location.location_type", read_only=True)
tags = TagListSerializerField(source="location.tags", required=False)
Expand Down
2 changes: 1 addition & 1 deletion dojo/url/api/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ class Meta:
"""Meta class for URLSerializer."""

model = URL
fields = "__all__"
exclude = ("location", "hash")