Skip to content

Commit e14bffa

Browse files
committed
remove unused response
Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
1 parent 41c445c commit e14bffa

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

problem/serializers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ class ProblemDescriptionSerializer(serializers.ModelSerializer):
3232
class Meta:
3333
model = Problem
3434
fields = [
35-
"pid",
3635
"description",
3736
]
3837

3938
depth = 0
40-
read_only_fields = ["id"]
4139

4240
class TagSerializer(serializers.ModelSerializer):
4341

problem/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def get(self, request):
163163
ts = TagSerializer(queryset, many=True)
164164

165165
return Response({
166-
"detail": "Success",
167166
"count": queryset.count(),
168167
"res": ts.data
169168
}, status=status.HTTP_200_OK)

0 commit comments

Comments
 (0)