Add paid boolean field to payment model to know whether the user has already paid the fees or not. payments
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 15 Nov 2010 14:59:46 +0530
branchpayments
changeset 248 0fc144c69e84
parent 247 2907855f18c4
child 249 9d90fbae1216
Add paid boolean field to payment model to know whether the user has already paid the fees or not.
project/scipycon/registration/models.py
--- a/project/scipycon/registration/models.py	Mon Nov 15 14:59:13 2010 +0530
+++ b/project/scipycon/registration/models.py	Mon Nov 15 14:59:46 2010 +0530
@@ -118,6 +118,10 @@
 
     user = models.ForeignKey(User)
 
+    paid = models.BooleanField(
+        default=False, blank=True, verbose_name="Amount paid",
+        help_text="Check this box if you have already paid the fees.")
+
     type = models.CharField(max_length=25, choices=PAYMENT_MODE_CHOICES,
                             verbose_name="Type", blank=True, null=True)