comparison smiley/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 7429c98c8ece
children 2908859c2fe4
comparison
equal deleted inserted replaced
928:4d26a46f1b86 929:e14f54f16dbc
62 62
63 class Smiley(models.Model): 63 class Smiley(models.Model):
64 image = models.ImageField(upload_to='smiley/images/') 64 image = models.ImageField(upload_to='smiley/images/')
65 title = models.CharField(max_length=32) 65 title = models.CharField(max_length=32)
66 code = models.CharField(max_length=32) 66 code = models.CharField(max_length=32)
67 is_extra = models.BooleanField() 67 is_extra = models.BooleanField(default=False)
68 68
69 objects = SmileyManager() 69 objects = SmileyManager()
70 70
71 class Meta: 71 class Meta:
72 verbose_name_plural = 'Smilies' 72 verbose_name_plural = 'Smilies'