Skip to content

Commit 73cb6d8

Browse files
add migration && black
1 parent 000e75a commit 73cb6d8

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.4 on 2024-10-25 07:39
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("interview", "0027_alter_offer_options"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="process",
15+
name="contract_start_date",
16+
field=models.DateField(blank=True, null=True, verbose_name="Contract start date"),
17+
),
18+
]

interview/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def process(request, process_id, slug_info=None):
264264

265265
doc_type_verbose_map = dict(Document.DOCUMENT_TYPE)
266266
for d in documents:
267-
setattr(d, 'verbose_type', doc_type_verbose_map[d.document_type])
267+
setattr(d, "verbose_type", doc_type_verbose_map[d.document_type])
268268

269269
context = {
270270
"process": process,
@@ -590,7 +590,7 @@ def new_candidate(request, past_candidate_id=None):
590590
source_form = SourceForm(prefix="source")
591591
offer_form = OfferForm(prefix="offer")
592592

593-
doctypes =dict(Document.DOCUMENT_TYPE)
593+
doctypes = dict(Document.DOCUMENT_TYPE)
594594
return render(
595595
request,
596596
"interview/new_candidate.html",
@@ -936,7 +936,7 @@ def edit_candidate(request, process_id):
936936
if request.user.consultant.is_external:
937937
process_form.fields.pop("sources")
938938

939-
doctypes =dict(Document.DOCUMENT_TYPE)
939+
doctypes = dict(Document.DOCUMENT_TYPE)
940940

941941
data = {
942942
"process": process,

0 commit comments

Comments
 (0)