Commits

Patrick Samson committed 8f261b9

BooleanField definition needs an explicit default value for Django 1.6

  • Participants
  • Parent commits 855be5d

Comments (0)

Files changed (1)

postman/models.py

     sent_at = models.DateTimeField(_("sent at"), default=now)
     read_at = models.DateTimeField(_("read at"), null=True, blank=True)
     replied_at = models.DateTimeField(_("replied at"), null=True, blank=True)
-    sender_archived = models.BooleanField(_("archived by sender"))
-    recipient_archived = models.BooleanField(_("archived by recipient"))
+    sender_archived = models.BooleanField(_("archived by sender"), default=False)
+    recipient_archived = models.BooleanField(_("archived by recipient"), default=False)
     sender_deleted_at = models.DateTimeField(_("deleted by sender at"), null=True, blank=True)
     recipient_deleted_at = models.DateTimeField(_("deleted by recipient at"), null=True, blank=True)
     # moderation fields