Files @ 462cbc396354
Branch filter:

Location: website/www/conservancy/apps/summit_registration/models.py

bkuhn
Supporters list built dynamically.

Hitherto the supporters list has been committed directly to the static
sponsors/index.html file. This was never ideal and a quick hack to
build Conservancy's supporters list at the beginning of the supporters
program.

With this change, a Django app now exists that dynamically generates the
supporters list.

The database rows must be built from Conservancy's internal Ledger file,
which will be done in a separate script.
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(null=True)

    class Meta:
        ordering = ('name',)