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:
f8098c2
)
tickets: Add Booking.created field.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 08:56:33 +0000
(10:56 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 09:03:20 +0000
(11:03 +0200)
tickets/models.py
patch
|
blob
|
history
diff --git
a/tickets/models.py
b/tickets/models.py
index 2a7c3f783a39abd62a16ac23cf8c5f98e36ee67f..3d174dd3fa4143fb9a89a73b5357083ba2a0472a 100644
(file)
--- 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="")