比赛
All checks were successful
Deploy to Server / deploy (push) Successful in 25s

This commit is contained in:
jeremygan2021
2026-03-10 10:46:13 +08:00
parent 00389e0709
commit 724dd3857c
5 changed files with 98 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ class Competition(models.Model):
condition_description = models.TextField(verbose_name="参赛条件说明", blank=True)
cover_image = models.ImageField(upload_to='competitions/covers/', verbose_name="封面图", null=True, blank=True)
cover_image_url = models.URLField(verbose_name="封面图URL", null=True, blank=True, help_text="优先使用上传的图片")
start_time = models.DateTimeField(verbose_name="开始时间")
end_time = models.DateTimeField(verbose_name="结束时间")
@@ -111,6 +112,7 @@ class Project(models.Model):
team_info = models.TextField(verbose_name="团队介绍", blank=True)
cover_image = models.ImageField(upload_to='competitions/projects/covers/', verbose_name="项目封面", null=True, blank=True)
cover_image_url = models.URLField(verbose_name="项目封面URL", null=True, blank=True, help_text="优先使用上传的图片")
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='draft', verbose_name="状态")