from django.db import models class InvitedGuest(models.Model): rsvpCode = models.CharField(max_length=3) name = models.CharField(max_length=500) attending = models.BooleanField(default=False) def __str__(self): return '%s (%s)' % (self.name, 'attending' if self.attending else 'not attending')