diff 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
line wrap: on
line diff
--- a/smiley/models.py	Tue Apr 14 21:28:36 2015 -0500
+++ b/smiley/models.py	Wed Apr 15 20:18:23 2015 -0500
@@ -64,7 +64,7 @@
     image = models.ImageField(upload_to='smiley/images/')
     title = models.CharField(max_length=32)
     code = models.CharField(max_length=32)
-    is_extra = models.BooleanField()
+    is_extra = models.BooleanField(default=False)
 
     objects = SmileyManager()