Skip to content

Commit 2a40969

Browse files
committed
Readonly field 지정
1 parent 527ee30 commit 2a40969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sponsor/serializers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ class Meta:
2121
"level",
2222
"id",
2323
]
24+
read_only_fields = [
25+
"name",
26+
"level",
27+
"id",
28+
]
2429

2530

2631
class SponsorDetailSerializer(serializers.ModelSerializer):

0 commit comments

Comments
 (0)