tickets: List total price with number of tickets.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 14:20:29 +0000 (16:20 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 14:20:29 +0000 (16:20 +0200)
tickets/models.py

index ab80b5f807a1fe9df0064be7c3b9adf90d603b5c..c124473c727e0c079c19aaf3a2c2fed7778e8235 100644 (file)
@@ -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")