From bda6d204eb7d8ccc769472fff02e07b53bc24812 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 19 Oct 2010 16:20:29 +0200 Subject: [PATCH] tickets: List total price with number of tickets. --- tickets/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tickets/models.py b/tickets/models.py index ab80b5f..c124473 100644 --- a/tickets/models.py +++ b/tickets/models.py @@ -9,10 +9,10 @@ SHOW_CHOICES = [ ("vrijdag", "vrijdag 17 december, 20:00") , ("zondag", "zondag 19 december, 13:00") ] -TICKETS_CHOICES = [ (n, n) for n in range(1, 6)] - TICKET_PRICE=10 +TICKETS_CHOICES = [ (n, u"%s (€%.2d)" % (n, n * TICKET_PRICE)) 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") -- 2.30.2