We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a0680 commit 0b830aaCopy full SHA for 0b830aa
2 files changed
dojo/location/api/serializers.py
@@ -1,5 +1,6 @@
1
from __future__ import annotations
2
3
+from rest_framework.relations import PrimaryKeyRelatedField
4
from rest_framework.serializers import CharField
5
6
from dojo.api_helpers.serializers import BaseModelSerializer
@@ -13,6 +14,7 @@
13
14
15
16
class AbstractedLocationSerializer(BaseModelSerializer):
17
+ id = PrimaryKeyRelatedField(source="location.id", read_only=True)
18
string = CharField(source="location.location_value", read_only=True)
19
type = CharField(source="location.location_type", read_only=True)
20
tags = TagListSerializerField(source="location.tags", required=False)
dojo/url/api/serializer.py
@@ -11,4 +11,4 @@ class Meta:
11
"""Meta class for URLSerializer."""
12
model = URL
- fields = "__all__"
+ exclude = ("location", "hash")
0 commit comments