Skip to content

Commit

Permalink
fix: fix a minor bug in general-hint serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Nov 10, 2024
1 parent f606c7f commit 0d86bcf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/fsm/serializers/hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@


class PublicGeneralHintSerializer(TreasuryObjectSerializer):
class Meta(ObjectSerializer.Meta):
class Meta(TreasuryObjectSerializer.Meta):
model = GeneralHint
fields = ObjectSerializer.Meta.fields + []
read_only_fields = ObjectSerializer.Meta.read_only_fields
fields = TreasuryObjectSerializer.Meta.fields + ['id']
read_only_fields = TreasuryObjectSerializer.Meta.read_only_fields + \
['id']


class DetailedGeneralHintSerializer(ObjectSerializer):
class Meta(ObjectSerializer.Meta):
model = GeneralHint
fields = ObjectSerializer.Meta.fields + ['hint_content']
read_only_fields = ObjectSerializer.Meta.read_only_fields
fields = ObjectSerializer.Meta.fields + ['id', 'hint_content']
read_only_fields = ObjectSerializer.Meta.read_only_fields + ['id']

0 comments on commit 0d86bcf

Please sign in to comment.