Skip to content

Commit

Permalink
Fix yapf errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinKristiansen committed Sep 14, 2023
1 parent 4f33226 commit 22c05cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions backend/samfundet/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,14 +512,16 @@ class Meta:
'interview_location',
]


class ApplicantInfoSerializer(serializers.ModelSerializer):

class Meta:
model = User
fields = ['id', 'first_name', 'last_name', 'email']


class RecruitmentAdmissionForGangSerializer(serializers.ModelSerializer):
user = ApplicantInfoSerializer(read_only = True)
user = ApplicantInfoSerializer(read_only=True)

class Meta:
model = RecruitmentAdmission
Expand Down
2 changes: 1 addition & 1 deletion backend/samfundet/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Type

from django.contrib.auth import login, logout
from django.contrib.auth.models import Group
from django.db.models import QuerySet
Expand Down Expand Up @@ -447,6 +446,7 @@ class RecruitmentPositionView(ModelViewSet):
serializer_class = RecruitmentPositionSerializer
queryset = RecruitmentPosition.objects.all()


@method_decorator(ensure_csrf_cookie, 'dispatch')
class RecruitmentAdmissionView(ModelViewSet):
permission_classes = [AllowAny]
Expand Down

0 comments on commit 22c05cc

Please sign in to comment.