# Create your models here.
from django.db import models

# Create your models here.
class booking(models.Model):
    name = models.CharField(max_length=30, blank=False)
    done = models.BooleanField(blank=False, default=False)
    priority= models.CharField(max_length=6, blank=False)
    
    def __str__(self):
        
        status = "D" if self.done else "N"
        
        return "{0} ({1})".format(self.name, status)
       