Add type and detail fields for the payment model. payments
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 15 Nov 2010 14:02:40 +0530
branchpayments
changeset 245 6ba059b30281
parent 244 5e6411f210de
child 246 1bd29275df1f
Add type and detail fields for the payment model.
project/scipycon/registration/models.py
--- a/project/scipycon/registration/models.py	Wed Nov 10 07:02:57 2010 +0530
+++ b/project/scipycon/registration/models.py	Mon Nov 15 14:02:40 2010 +0530
@@ -32,9 +32,9 @@
     )
 
 PAYMENT_MODE_CHOICES = (
-    (),
-    (),
-    ()
+    ('Cheque', 'Cheque'),
+    ('Demand Draft(DD)', 'Demand Draft(DD)'),
+    ('Net Banking', 'Net Banking')
     )
 
 class Wifi(base_models.ScopedBase):
@@ -118,3 +118,13 @@
 
     user = models.ForeignKey(User)
 
+    type = models.CharField(max_length=25, choices=PAYMENT_MODE_CHOICES,
+                            verbose_name="Type", blank=True, null=True)
+
+    details = models.CharField(
+        max_length=255, verbose_name="Details",
+        help_text="If you made the payment using a cheque or a DD please "
+        "provide the number on the cheque or DD. If you made the payment "
+        "via Net Banking please provide the last four digits of the account "
+        "number and the name of the account holder from which the transfer "
+        "was made.", blank=True, null=True)