Skip to content

Commit

Permalink
simplify serialization of hints
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Jul 1, 2023
1 parent 4c2627b commit 30a4816
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hunt/apiviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ class ModelViewSet(Generic[T], viewsets.ModelViewSet):
class HintSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Hint
fields = [ # noqa: RUF012
"level",
"number",
"image",
]
fields = ["number", "image"] # noqa: RUF012


class LevelSerializer(serializers.HyperlinkedModelSerializer):
Expand Down

0 comments on commit 30a4816

Please sign in to comment.