Skip to content

Commit

Permalink
Lint python
Browse files Browse the repository at this point in the history
  • Loading branch information
didrikmunther committed Feb 23, 2024
1 parent 5e16946 commit 3ebc903
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 29 deletions.
6 changes: 3 additions & 3 deletions companies/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,9 @@ def contracts_export(request, year):

response = HttpResponse(csv, content_type="text/csv; charset=utf-8")
response["Content-Length"] = len(csv)
response["Content-Disposition"] = (
'attachment; filename="exported signatures.csv"'
)
response[
"Content-Disposition"
] = 'attachment; filename="exported signatures.csv"'

return response

Expand Down
32 changes: 19 additions & 13 deletions fair/migrations/0023_add_ir_acceptance_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,38 @@


class Migration(migrations.Migration):

dependencies = [
('fair', '0022_auto_20230427_1920'),
("fair", "0022_auto_20230427_1920"),
]

operations = [
migrations.AlterModelOptions(
name='fairday',
options={'default_permissions': [], 'ordering': ['-fair', 'date']},
name="fairday",
options={"default_permissions": [], "ordering": ["-fair", "date"]},
),
migrations.AlterModelOptions(
name='lunchticket',
options={'default_permissions': [], 'ordering': ['-fair', 'pk'], 'permissions': [('lunchtickets', 'Manage lunch tickets')]},
name="lunchticket",
options={
"default_permissions": [],
"ordering": ["-fair", "pk"],
"permissions": [("lunchtickets", "Manage lunch tickets")],
},
),
migrations.AlterModelOptions(
name='organizationgroup',
options={'ordering': ['-fair', 'name']},
name="organizationgroup",
options={"ordering": ["-fair", "name"]},
),
migrations.AddField(
model_name='fair',
name='registration_acceptance_date',
field=models.DateTimeField(default='2021-01-01 00:00:00+00:00', help_text='The date when the companies will be able to see if they have been accepted or not.'),
model_name="fair",
name="registration_acceptance_date",
field=models.DateTimeField(
default="2021-01-01 00:00:00+00:00",
help_text="The date when the companies will be able to see if they have been accepted or not.",
),
),
migrations.AlterField(
model_name='fair',
name='year',
model_name="fair",
name="year",
field=models.IntegerField(default=2024),
),
]
18 changes: 9 additions & 9 deletions recruitment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,9 @@ def recruitment_application_interview(
interview_planning_form = InterviewPlanningForm(
request.POST or None, instance=application
)
interview_planning_form.fields["recommended_role"].queryset = (
application.recruitment_period.recruitable_roles
)
interview_planning_form.fields[
"recommended_role"
].queryset = application.recruitment_period.recruitable_roles

used_slots = []

Expand Down Expand Up @@ -1282,9 +1282,9 @@ def recruitment_application_interview(
if "interviewer" in interview_planning_form.fields:
interview_planning_form.fields["interviewer"].choices = interviewers_by_language
if "interviewer2" in interview_planning_form.fields:
interview_planning_form.fields["interviewer2"].choices = (
interviewers_by_language
)
interview_planning_form.fields[
"interviewer2"
].choices = interviewers_by_language

RoleDelegationForm = modelform_factory(
RecruitmentApplication, fields=["delegated_role", "superior_user", "status"]
Expand All @@ -1293,9 +1293,9 @@ def recruitment_application_interview(
role_delegation_form = RoleDelegationForm(
request.POST or None, instance=application
)
role_delegation_form.fields["delegated_role"].queryset = (
application.recruitment_period.recruitable_roles
)
role_delegation_form.fields[
"delegated_role"
].queryset = application.recruitment_period.recruitable_roles
role_delegation_form.fields["superior_user"].choices = [("", "---------")] + [
(interviewer.pk, interviewer.get_full_name()) for interviewer in interviewers
]
Expand Down
7 changes: 3 additions & 4 deletions register/migrations/0006_add_signup_log_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class Migration(migrations.Migration):

dependencies = [
('register', '0005_auto_20190505_1539'),
("register", "0005_auto_20190505_1539"),
]

operations = [
migrations.AddField(
model_name='signuplog',
name='ip_address',
model_name="signuplog",
name="ip_address",
field=models.GenericIPAddressField(blank=True, null=True),
),
]

0 comments on commit 3ebc903

Please sign in to comment.