Mercurial > public > sg101
diff donations/models.py @ 929:e14f54f16dbc
Django 1.7.7 changed BooleanField default value.
Add explicit default to avoid a warning.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Apr 2015 20:18:23 -0500 |
parents | 40ae28f33b3d |
children |
line wrap: on
line diff
--- a/donations/models.py Tue Apr 14 21:28:36 2015 -0500 +++ b/donations/models.py Wed Apr 15 20:18:23 2015 -0500 @@ -96,7 +96,7 @@ """Model to represent a donation to the website.""" user = models.ForeignKey(User, null=True, blank=True) - is_anonymous = models.BooleanField() + is_anonymous = models.BooleanField(default=False) test_ipn = models.BooleanField(default=False, verbose_name="Test IPN") txn_id = models.CharField(max_length=20, verbose_name="Txn ID") txn_type = models.CharField(max_length=64)