Files @ a5cd6ab63b9a
Branch filter:

Location: website/www/conservancy/apps/contacts/

Make defaults for BooleanFields.

According to django-admin check,

(1_6.W002) BooleanField does not have a default value.
HINT: Django 1.6 changed the default value of BooleanField from False to None. See for more information.
from django.db import models

class ContactEntry(models.Model):
    """Conservancy contact system

    Hopefully this will be deprecated soon"""

    email = models.EmailField() # should make it unique, but we really cannot
    subscribe_conservancy = models.BooleanField(default=False)

    class Meta:
        ordering = ('email',)