tickets: Remove the "payment" field from the booking form.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 10:22:21 +0000 (12:22 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 10:22:21 +0000 (12:22 +0200)
tickets/views.py

index f0cdfa4be9d00616584d08ce01404dff4e9529e8..d37674b14a9f77608d25310ecd8efa399f6f8321 100644 (file)
@@ -9,6 +9,7 @@ from models import Booking
 class BookingForm(django.forms.ModelForm):
     class Meta:
         model=Booking
+        exclude=['payment']
 
 def confirm_booking(booking):
     from django.core.mail import EmailMessage