Skip to content

Commit

Permalink
django 1.6 force send default
Browse files Browse the repository at this point in the history
django 1.6 no longer defaults to False for BooleanFields which causes
startup warnings.
https://docs.djangoproject.com/en/dev/releases/1.6/#booleanfield-no-longer-defaults-to-false.
this commit forces False on the send field.
  • Loading branch information
sherzberg committed Aug 27, 2014
1 parent db9979b commit b6ebee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,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)
send = models.BooleanField(_("send"))
send = models.BooleanField(_("send"), default=False)

class Meta:
verbose_name = _("notice setting")
Expand Down

0 comments on commit b6ebee8

Please # to comment.