# HG changeset patch # User Madhusudan.C.S # Date 1289809960 -19800 # Node ID 6ba059b3028140fde635abf3a5328316ad946c55 # Parent 5e6411f210defe2c8d654226920df6a366f2c70c Add type and detail fields for the payment model. diff -r 5e6411f210de -r 6ba059b30281 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)