Skip to content

Commit fa54b5a

Browse files
committed
Black 적용
1 parent d6606d9 commit fa54b5a

File tree

7 files changed

+62
-20
lines changed

7 files changed

+62
-20
lines changed

pyconweb2022/program/migrations/0001_initial.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class Migration(migrations.Migration):
5353
(
5454
"difficulty",
5555
models.CharField(
56-
choices=[("B", "초급"), ("I", "중급"), ("E", "고급")], max_length=1
56+
choices=[("B", "초급"), ("I", "중급"), ("E", "고급")],
57+
max_length=1,
5758
),
5859
),
5960
(
@@ -95,7 +96,9 @@ class Migration(migrations.Migration):
9596
(
9697
"video_open_at",
9798
models.DateTimeField(
98-
blank=True, help_text="파이콘 한국 유튜브에 공개되는 시간", null=True
99+
blank=True,
100+
help_text="파이콘 한국 유튜브에 공개되는 시간",
101+
null=True,
99102
),
100103
),
101104
(

pyconweb2022/program/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ class Proposal(models.Model):
8080
)
8181
track_num = models.IntegerField(null=True, blank=True, help_text="트랙 번호")
8282
speaker_profile_img = models.ImageField(
83-
null=True, blank=True, help_text="발표자님 프로필 사진", upload_to=profile_img_upload_to
83+
null=True,
84+
blank=True,
85+
help_text="발표자님 프로필 사진",
86+
upload_to=profile_img_upload_to,
8487
)
8588

8689
# 이력관리용 필드

pyconweb2022/pyconweb2022/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/4.0/ref/settings/
1111
"""
12+
1213
import os.path
1314
from pathlib import Path
1415

pyconweb2022/pyconweb2022/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.contrib import admin
1718
from django.urls import path, include
1819

pyconweb2022/sponsor/migrations/0001_initial.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ class Migration(migrations.Migration):
5252
),
5353
("visible", models.BooleanField(default=True)),
5454
("price", models.IntegerField(default=0)),
55-
("limit", models.IntegerField(default=0, help_text="후원사 등급 별 구좌수")),
55+
(
56+
"limit",
57+
models.IntegerField(default=0, help_text="후원사 등급 별 구좌수"),
58+
),
5659
("order", models.IntegerField(default=1)),
5760
("created_at", models.DateTimeField(auto_now_add=True)),
5861
("updated_at", models.DateTimeField(auto_now=True)),
@@ -82,13 +85,16 @@ class Migration(migrations.Migration):
8285
(
8386
"name",
8487
models.CharField(
85-
help_text="후원사의 이름입니다. 서비스나 회사 이름이 될 수 있습니다.", max_length=255
88+
help_text="후원사의 이름입니다. 서비스나 회사 이름이 될 수 있습니다.",
89+
max_length=255,
8690
),
8791
),
8892
(
8993
"desc",
9094
models.TextField(
91-
blank=True, help_text="후원사 설명입니다. 이 설명은 홈페이지에 게시됩니다.", null=True
95+
blank=True,
96+
help_text="후원사 설명입니다. 이 설명은 홈페이지에 게시됩니다.",
97+
null=True,
9298
),
9399
),
94100
(

pyconweb2022/sponsor/migrations/0005_sponsor_eng_desc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ class Migration(migrations.Migration):
1414
model_name="sponsor",
1515
name="eng_desc",
1616
field=models.TextField(
17-
blank=True, help_text="후원사 영문설명입니다. 이 설명은 홈페이지에 게시됩니다.", null=True
17+
blank=True,
18+
help_text="후원사 영문설명입니다. 이 설명은 홈페이지에 게시됩니다.",
19+
null=True,
1820
),
1921
),
2022
]

pyconweb2022/sponsor/models.py

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ def get_queryset(self):
1313

1414

1515
class SponsorLevel(models.Model):
16-
name = models.CharField(max_length=255, blank=True, default="", help_text="후원 등급명")
16+
name = models.CharField(
17+
max_length=255, blank=True, default="", help_text="후원 등급명"
18+
)
1719
slug = models.SlugField(
18-
max_length=100, unique=True, help_text="level별 후원사 정보를 보여주는 페이지의 path명"
20+
max_length=100,
21+
unique=True,
22+
help_text="level별 후원사 정보를 보여주는 페이지의 path명",
1923
)
2024
desc = models.TextField(
21-
null=True, blank=True, help_text="후원 혜택을 입력하면 될 거 같아요 :) 후원사가 등급을 정할 때 볼 문구입니다."
25+
null=True,
26+
blank=True,
27+
help_text="후원 혜택을 입력하면 될 거 같아요 :) 후원사가 등급을 정할 때 볼 문구입니다.",
2228
)
2329
visible = models.BooleanField(default=True)
2430
price = models.IntegerField(default=0)
@@ -68,30 +74,45 @@ class Meta:
6874
ordering = ["paid_at", "id"]
6975

7076
slug = models.SlugField(
71-
max_length=100, null=True, blank=True, help_text="후원사 상세 페이지의 path로 사용됩니다."
77+
max_length=100,
78+
null=True,
79+
blank=True,
80+
help_text="후원사 상세 페이지의 path로 사용됩니다.",
7281
)
7382
name = models.CharField(
74-
max_length=255, help_text=("후원사의 이름입니다. 서비스나 회사 이름이 될 수 있습니다.")
83+
max_length=255,
84+
help_text=("후원사의 이름입니다. 서비스나 회사 이름이 될 수 있습니다."),
7585
)
7686
level = models.ForeignKey(
7787
SponsorLevel,
7888
null=True,
7989
on_delete=models.SET_NULL,
8090
blank=True,
81-
help_text=("후원을 원하시는 등급을 선택해주십시오. 모두 판매된 등급은 선택할 수 없습니다."),
91+
help_text=(
92+
"후원을 원하시는 등급을 선택해주십시오. 모두 판매된 등급은 선택할 수 없습니다."
93+
),
8294
)
8395
desc = models.TextField(
84-
null=True, blank=True, help_text=("후원사 설명입니다. 이 설명은 홈페이지에 게시됩니다.")
96+
null=True,
97+
blank=True,
98+
help_text=("후원사 설명입니다. 이 설명은 홈페이지에 게시됩니다."),
8599
)
86100
eng_desc = models.TextField(
87-
null=True, blank=True, help_text=("후원사 영문설명입니다. 이 설명은 홈페이지에 게시됩니다.")
101+
null=True,
102+
blank=True,
103+
help_text=("후원사 영문설명입니다. 이 설명은 홈페이지에 게시됩니다."),
88104
)
89105
manager_name = models.CharField(
90-
max_length=100, help_text=("준비위원회와 후원과 관련된 논의를 진행할 담당자의 이름을 입력해주십시오.")
106+
max_length=100,
107+
help_text=(
108+
"준비위원회와 후원과 관련된 논의를 진행할 담당자의 이름을 입력해주십시오."
109+
),
91110
)
92111
manager_email = models.CharField(
93112
max_length=100,
94-
help_text=("입력하신 메일로 후원과 관련된 안내 메일이나 문의를 보낼 예정입니다. 후원 담당자의 이메일 주소를 입력해주십시오."),
113+
help_text=(
114+
"입력하신 메일로 후원과 관련된 안내 메일이나 문의를 보낼 예정입니다. 후원 담당자의 이메일 주소를 입력해주십시오."
115+
),
95116
)
96117
business_registration_number = models.CharField(
97118
max_length=100,
@@ -120,17 +141,22 @@ class Meta:
120141
virtual_booth_content = models.TextField(
121142
null=True,
122143
blank=True,
123-
help_text=("Virtual booth에 들어가는 내용입니다. 홈페이지의 virtual booth에 게시됩니다."),
144+
help_text=(
145+
"Virtual booth에 들어가는 내용입니다. 홈페이지의 virtual booth에 게시됩니다."
146+
),
124147
)
125148
submitted = models.BooleanField(
126149
default=False,
127150
help_text="사용자가 제출했는지 여부를 저장합니다. 요청이 제출되면 준비위원회에서 검토하고 받아들일지를 결정합니다.",
128151
)
129152
accepted = models.BooleanField(
130-
default=False, help_text="후원사 신청이 접수되었고, 입금 대기 상태인 경우 True로 설정됩니다."
153+
default=False,
154+
help_text="후원사 신청이 접수되었고, 입금 대기 상태인 경우 True로 설정됩니다.",
131155
)
132156
paid_at = models.DateTimeField(
133-
null=True, blank=True, help_text="후원금이 입금된 일시입니다. 아직 입금되지 않았을 경우 None이 들어갑니다."
157+
null=True,
158+
blank=True,
159+
help_text="후원금이 입금된 일시입니다. 아직 입금되지 않았을 경우 None이 들어갑니다.",
134160
)
135161
exported = models.BooleanField(default=False)
136162
created_at = models.DateTimeField(auto_now_add=True)

0 commit comments

Comments
 (0)