sdi/models.py
branchanoop
changeset 235 7583311884e1
parent 233 c5df028e4438
equal deleted inserted replaced
234:cf3de6d222ce 235:7583311884e1
    95     
    95     
    96     likeliness_of_attending = models.CharField(max_length=1, choices=LIKELINESS_CHOICES)
    96     likeliness_of_attending = models.CharField(max_length=1, choices=LIKELINESS_CHOICES)
    97 
    97 
    98     def __unicode__(self):
    98     def __unicode__(self):
    99 
    99 
   100         return self.first_name + " " + self.last_name
   100         return self.first_name.title() + " " + self.last_name.title()
   101 
   101 
   102 class ParticipantInfo(models.Model):
   102 class ParticipantInfo(models.Model):
   103 
   103 
   104     participant = models.ForeignKey(Registrant)
   104     participant = models.ForeignKey(Registrant)
   105     has_laptop_for_sagedays = models.BooleanField(verbose_name="Will you bring your own laptop for Sage Days 25", default=False)
   105     has_laptop_for_sagedays = models.BooleanField(verbose_name="Will you bring your own laptop for Sage Days 25", default=False)