File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ def __str__(self):
1515 return self .name
1616
1717
18+ def profile_img_upload_to (instance , filename ):
19+ return f"program/speaker_profile_img/{ instance .id } /{ filename } "
20+
21+
1822class Proposal (models .Model ):
1923 user = models .ForeignKey (User , on_delete = models .CASCADE )
2024 user_name = models .CharField (max_length = 100 , default = "" )
@@ -74,6 +78,12 @@ class Proposal(models.Model):
7478 null = True , blank = True , help_text = "파이콘 한국 유튜브에 공개되는 시간"
7579 )
7680 track_num = models .IntegerField (null = True , blank = True , help_text = "트랙 번호" )
81+ speaker_profile_img = models .ImageField (
82+ null = True ,
83+ blank = True ,
84+ help_text = "발표자님 프로필 사진" ,
85+ upload_to = profile_img_upload_to
86+ )
7787
7888 # 이력관리용 필드
7989 created_at = models .DateTimeField (auto_now_add = True )
You can’t perform that action at this time.
0 commit comments