comparison 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
comparison
equal deleted inserted replaced
928:4d26a46f1b86 929:e14f54f16dbc
94 94
95 class Donation(models.Model): 95 class Donation(models.Model):
96 """Model to represent a donation to the website.""" 96 """Model to represent a donation to the website."""
97 97
98 user = models.ForeignKey(User, null=True, blank=True) 98 user = models.ForeignKey(User, null=True, blank=True)
99 is_anonymous = models.BooleanField() 99 is_anonymous = models.BooleanField(default=False)
100 test_ipn = models.BooleanField(default=False, verbose_name="Test IPN") 100 test_ipn = models.BooleanField(default=False, verbose_name="Test IPN")
101 txn_id = models.CharField(max_length=20, verbose_name="Txn ID") 101 txn_id = models.CharField(max_length=20, verbose_name="Txn ID")
102 txn_type = models.CharField(max_length=64) 102 txn_type = models.CharField(max_length=64)
103 first_name = models.CharField(max_length=64, blank=True) 103 first_name = models.CharField(max_length=64, blank=True)
104 last_name = models.CharField(max_length=64, blank=True) 104 last_name = models.CharField(max_length=64, blank=True)