Skip to content

Commit bbfe4da

Browse files
author
Arturo Fernandez
committed
Replacing CharField for IntegerField for NoticeSetting model.
Fixes pinax#21
1 parent 6782099 commit bbfe4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notification/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class NoticeSetting(models.Model):
8787

8888
user = models.ForeignKey(AUTH_USER_MODEL, verbose_name=_("user"))
8989
notice_type = models.ForeignKey(NoticeType, verbose_name=_("notice type"))
90-
medium = models.CharField(_("medium"), max_length=1, choices=NOTICE_MEDIA)
90+
medium = models.IntegerField(_("medium"), choices=NOTICE_MEDIA)
9191
send = models.BooleanField(_("send"))
9292

9393
class Meta:

0 commit comments

Comments
 (0)