from django.db import models # Create your models here. CHOICES = ( ("YS", "Yes"), ("NO", "No"), ("DK", "Don't Know")) class LicensingPoll(models.Model): want_licensing = models.CharField(verbose_name = "I support the passing of a bylaw in Hamilton that would require the licensing of residential rental units in single-family houses in areas specific to McMaster University and Mohawk College.", choices=CHOICES, maxlength=2) ip = models.IPAddressField(null=True) vote_date = models.DateField(null=True) class Admin: pass def __unicode__(self): return unicode(self.want_licensing) visible_fields = ('want_licensing',)