diff --git a/notification/models.py b/notification/models.py index a0185da7..e0caa33c 100644 --- a/notification/models.py +++ b/notification/models.py @@ -87,7 +87,7 @@ class NoticeSetting(models.Model): user = models.ForeignKey(AUTH_USER_MODEL, verbose_name=_("user")) notice_type = models.ForeignKey(NoticeType, verbose_name=_("notice type")) - medium = models.CharField(_("medium"), max_length=1, choices=NOTICE_MEDIA) + medium = models.IntegerField(_("medium"), choices=NOTICE_MEDIA) send = models.BooleanField(_("send")) class Meta: