Skip to content

Commit

Permalink
Merge pull request #243 from CSSAInformationDepartment/Jimmy_event
Browse files Browse the repository at this point in the history
Modified the max length of event name
  • Loading branch information
doncd-p authored Sep 2, 2023
2 parents fd4aa09 + 3574171 commit a07ed03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/EventAPI/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Meta:
model = Event
exclude = ('eventStartTime', 'disabled')
help_texts = {
'eventName': _("名称最大长度位50,不可重复"),
'eventName': _("名称最大长度位30,不可重复"),
'eventSignUpTime': _("活动开始接受报名的时间"),
'eventActualStTime': _("活动实际开始的时间"),
'DisplayArticleType': _("选择活动介绍所要显示的文章来源"),
Expand Down
2 changes: 1 addition & 1 deletion src/EventAPI/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Event (models.Model):
eventID = models.UUIDField(
primary_key=True, default=uuid.uuid4, editable=False)
eventName = models.CharField(verbose_name=_(
"活动名称"), max_length=50, unique=True)
"活动名称"), max_length=30, unique=True)
eventInfo = models.CharField(verbose_name=_("活动简介"), max_length=600)

eventStartTime = models.DateTimeField(auto_now_add=True)
Expand Down

0 comments on commit a07ed03

Please sign in to comment.