website/www/conservancy/apps/summit_registration/models.py
Bradley M. Kuhn a5cd6ab63b 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 https://docs.djangoproject.com/en/1.6/ref/models/fields/#booleanfield for more information.
2015-03-08 18:00:50 -07:00

16 lines
518 B
Python

from django.db import models
class SummitRegistration(models.Model):
"""Form fields for summit registrants"""
name = models.CharField(max_length=300)
affiliation = models.CharField(max_length=700, blank=True)
address = models.TextField(blank=True)
email = models.EmailField(blank=True)
phone = models.CharField(max_length=100, blank=True)
date_created = models.DateField(auto_now_add=True)
cle_credit = models.BooleanField(default=True)
class Meta:
ordering = ('name',)