anna-dan-wedding-site/bigday/models.py

10 lines
320 B
Python
Raw Normal View History

2019-08-06 23:51:28 +00:00
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')