From: Matthijs Kooijman Date: Tue, 19 Oct 2010 08:56:33 +0000 (+0200) Subject: tickets: Add Booking.created field. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8d4b03b078f5f781673a6c1ae8f357c72d410258;p=matthijs%2Fprojects%2Fdorestad-bookings.git tickets: Add Booking.created field. --- diff --git a/tickets/models.py b/tickets/models.py index 2a7c3f7..3d174dd 100644 --- a/tickets/models.py +++ b/tickets/models.py @@ -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="")