Skip to content

Commit bf02aa1

Browse files
committed
Refactor: 코드 linter 적용
1 parent 631b4ca commit bf02aa1

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

pyconweb2022/program/migrations/0002_proposal_speaker_profile_img_alter_proposal_language.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,27 @@
77
class Migration(migrations.Migration):
88

99
dependencies = [
10-
('program', '0001_initial'),
10+
("program", "0001_initial"),
1111
]
1212

1313
operations = [
1414
migrations.AddField(
15-
model_name='proposal',
16-
name='speaker_profile_img',
17-
field=models.ImageField(blank=True, help_text='발표자님 프로필 사진', null=True, upload_to=program.models.profile_img_upload_to),
15+
model_name="proposal",
16+
name="speaker_profile_img",
17+
field=models.ImageField(
18+
blank=True,
19+
help_text="발표자님 프로필 사진",
20+
null=True,
21+
upload_to=program.models.profile_img_upload_to,
22+
),
1823
),
1924
migrations.AlterField(
20-
model_name='proposal',
21-
name='language',
22-
field=models.CharField(choices=[('', '---------'), ('K', '한글'), ('E', '영어')], default='', max_length=2),
25+
model_name="proposal",
26+
name="language",
27+
field=models.CharField(
28+
choices=[("", "---------"), ("K", "한글"), ("E", "영어")],
29+
default="",
30+
max_length=2,
31+
),
2332
),
2433
]

pyconweb2022/program/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ class Proposal(models.Model):
7979
)
8080
track_num = models.IntegerField(null=True, blank=True, help_text="트랙 번호")
8181
speaker_profile_img = models.ImageField(
82-
null=True,
83-
blank=True,
84-
help_text="발표자님 프로필 사진",
85-
upload_to=profile_img_upload_to
82+
null=True, blank=True, help_text="발표자님 프로필 사진", upload_to=profile_img_upload_to
8683
)
8784

8885
# 이력관리용 필드

0 commit comments

Comments
 (0)