Skip to content

Commit

Permalink
hotfix serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Feb 5, 2024
1 parent 2595bbe commit 85ba447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions project/geosource/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class SourceSerializer(PolymorphicModelSerializer):
fields = FieldSerializer(many=True, required=False)
slug = serializers.SlugField(max_length=255, read_only=True)
report = SourceReportingSerializer(read_only=True)
layers = serializers.PrimaryKeyRelatedField(many=True, read_only=True)

class Meta:
fields = "__all__"
Expand Down Expand Up @@ -174,6 +175,7 @@ class Meta:
"geom_type",
"report",
"layers",
"updated_at",
)

def get__type(self, instance):
Expand Down

0 comments on commit 85ba447

Please sign in to comment.