summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-11-15 14:02:40 +0530
committerMadhusudan.C.S2010-11-15 14:02:40 +0530
commit85d4bd4fb0fd0883466c71f8ab7982aa09679e52 (patch)
tree1387bf0e4da07d1bfcf585070aa276dd9bc598d8 /project
parent7dae6706e2047ce4a0a5c6f914b0c8fc230417cf (diff)
downloadscipycon-85d4bd4fb0fd0883466c71f8ab7982aa09679e52.tar.gz
scipycon-85d4bd4fb0fd0883466c71f8ab7982aa09679e52.tar.bz2
scipycon-85d4bd4fb0fd0883466c71f8ab7982aa09679e52.zip
Add type and detail fields for the payment model.
--HG-- branch : payments
Diffstat (limited to 'project')
-rw-r--r--project/scipycon/registration/models.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/project/scipycon/registration/models.py b/project/scipycon/registration/models.py
index 90a8599..2ab0752 100644
--- a/project/scipycon/registration/models.py
+++ b/project/scipycon/registration/models.py
@@ -32,9 +32,9 @@ SEX_CHOICES = (
)
PAYMENT_MODE_CHOICES = (
- (),
- (),
- ()
+ ('Cheque', 'Cheque'),
+ ('Demand Draft(DD)', 'Demand Draft(DD)'),
+ ('Net Banking', 'Net Banking')
)
class Wifi(base_models.ScopedBase):
@@ -118,3 +118,13 @@ class Payment(base_models.ScopedBase):
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)