Skip to content

Commit

Permalink
read only class fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 18, 2023
1 parent e131f88 commit 4796e94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codeforlife/user/serializers/klass.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ class Meta:
fields = "__all__"
extra_kwargs = {
"id": {"read_only": True},
"access_code": {"read_only": True},
"creation_time": {"read_only": True},
"created_by": {"read_only": True},
}

0 comments on commit 4796e94

Please sign in to comment.