Skip to content

Commit

Permalink
fix: transfer class (#95)
Browse files Browse the repository at this point in the history
* fix: teacher field on class serializer

* fix: help
  • Loading branch information
SKairinos authored Feb 29, 2024
1 parent 7200ece commit a3a11b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion codeforlife/user/management/commands/summarize_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Fixture:

# pylint: disable-next=missing-class-docstring
class Command(BaseCommand):
help = "Summarizes all the listed fixtures by default"
help = "Summarizes all the listed fixtures."

def add_arguments(self, parser):
parser.add_argument("app_labels", nargs="*", type=str)
Expand Down
6 changes: 1 addition & 5 deletions codeforlife/user/serializers/klass.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ class ClassSerializer(ModelSerializer[Class]):
read_only=True,
)

teacher = serializers.IntegerField(
source="teacher.id",
read_only=True,
)

school = serializers.IntegerField(
source="teacher.school.id",
read_only=True,
Expand All @@ -49,4 +44,5 @@ class Meta:
]
extra_kwargs = {
"name": {"read_only": True},
"teacher": {"read_only": True},
}

0 comments on commit a3a11b5

Please sign in to comment.