projects
/
matthijs
/
projects
/
dorestad-bookings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28aef98
)
tickets: List total price with number of tickets.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 14:20:29 +0000
(16:20 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 14:20:29 +0000
(16:20 +0200)
tickets/models.py
patch
|
blob
|
history
diff --git
a/tickets/models.py
b/tickets/models.py
index ab80b5f807a1fe9df0064be7c3b9adf90d603b5c..c124473c727e0c079c19aaf3a2c2fed7778e8235 100644
(file)
--- 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")