Files @ f6bbcc7ee328
Branch filter:

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

bkuhn
Just quit it with this relative import stuff.

While I think these relative imports seem to be valid for the running
application, I am having trouble with the django-admin applications
regarding them. I don't see this syntactic sugar as absolutely
essential, so I'm just going to change it now.
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',)