Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
magsyg committed Feb 15, 2024
1 parent 4b1b8f8 commit 8743fd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/samfundet/models/recruitment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Recruitment(CustomBaseModel):
actual_application_deadline = models.DateTimeField(
null=False,
blank=False,
help_text='Last point an application can be sent, typically a bit after the shown deadline to avoid getting a lot of extra mail'
help_text='Last point an application can be sent, typically a bit after the shown deadline to avoid getting a lot of extra mail',
)
shown_application_deadline = models.DateTimeField(null=False, blank=False, help_text='The deadline that is shown to applicants')
reprioritization_deadline_for_applicant = models.DateTimeField(null=False, blank=False, help_text='Before allocation meeting')
Expand Down
1 change: 1 addition & 0 deletions backend/samfundet/models/tests/test_recruitment.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_actual_deadline_before_shown_deadline(self, fixture_org):
assert Recruitment.ACTUAL_BEFORE_SHOWN_ERROR in e['actual_application_deadline']
assert Recruitment.SHOWN_AFTER_ACTUAL_ERROR in e['shown_application_deadline']


class TestRecruitmentAdmission:
def test_check_withdraw_sets_unwanted(self, fixture_recruitment_admission: RecruitmentAdmission):
assert fixture_recruitment_admission.recruiter_status == RecruitmentStatusChoices.NOT_SET
Expand Down
2 changes: 1 addition & 1 deletion backend/samfundet/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def delete(self, request: Request) -> Response:

@method_decorator(ensure_csrf_cookie, 'dispatch')
class RecruitmentView(ModelViewSet):
permission_classes = (DjangoModelPermissionsOrAnonReadOnly, )
permission_classes = (DjangoModelPermissionsOrAnonReadOnly,)
serializer_class = RecruitmentSerializer
queryset = Recruitment.objects.all()

Expand Down

0 comments on commit 8743fd6

Please sign in to comment.