tickets: Add Booking.created field.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 08:56:33 +0000 (10:56 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 09:03:20 +0000 (11:03 +0200)
tickets/models.py

index 2a7c3f783a39abd62a16ac23cf8c5f98e36ee67f..3d174dd3fa4143fb9a89a73b5357083ba2a0472a 100644 (file)
@@ -10,6 +10,7 @@ SHOW_CHOICES = [ ("vrijdag", "vrijdag 17 december, 20:00")
 TICKETS_CHOICES = [ (n, n) for n in range(1, 6)]
 
 class Booking(models.Model):
+    created = models.DateTimeField(auto_now_add=True, editable=False, verbose_name="Datum")
     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="")