From: Matthijs Kooijman Date: Tue, 19 Oct 2010 14:20:29 +0000 (+0200) Subject: tickets: List total price with number of tickets. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=bda6d204eb7d8ccc769472fff02e07b53bc24812;p=matthijs%2Fprojects%2Fdorestad-bookings.git tickets: List total price with number of tickets. --- 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")