from django.db import models
# Create your models here.
+
+SHOW_CHOICES = [ ("vrijdag", "vrijdag 17 december, 20:00")
+ , ("zaterdag", "zaterdag 18 december, 20:00")
+ , ("zondag", "zondag 19 december, 13:00")
+ ]
+
+TICKETS_CHOICES = [ (n, n) for n in range(1, 6)]
+
+class Booking(models.Model):
+ name = models.CharField(max_length=100, verbose_name="Naam")
+ address1 = models.CharField(max_length=50, verbose_name="Adres")
+ address2 = models.CharField(max_length=50, verbose_name="")
+ email = models.EmailField(verbose_name="Email adres")
+ tickets = models.IntegerField(choices=TICKETS_CHOICES, verbose_name="Aantal kaarten")
+ show = models.CharField(max_length=50, choices=SHOW_CHOICES, verbose_name="Voorstelling")