Skip to content
This repository
Browse code

Added reasonable initial value to some fields

  • Loading branch information...
commit 93413e98ec06c725e024d0e1a90a0b561e33cf10 1 parent fa95cf7
Jacob Rief authored May 23, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  ipayment/forms.py
6  ipayment/forms.py
@@ -20,10 +20,10 @@ class AbstractIPaymentForm(forms.Form):
20 20
     Form used to transfer customer data from a shop template to IPayment via Silent-CGI.
21 21
     """
22 22
     shopper_id = forms.IntegerField(widget=forms.HiddenInput)
23  
-    advanced_strict_id_check = forms.IntegerField(widget=forms.HiddenInput)
  23
+    advanced_strict_id_check = forms.IntegerField(widget=forms.HiddenInput, initial=1)
24 24
     invoice_text = forms.CharField(widget=forms.HiddenInput)
25  
-    error_lang = forms.CharField(widget=forms.HiddenInput)
26  
-    silent = forms.IntegerField(widget=forms.HiddenInput)
  25
+    error_lang = forms.CharField(widget=forms.HiddenInput, initial='en')
  26
+    silent = forms.IntegerField(widget=forms.HiddenInput, initial=1)
27 27
     addr_name = forms.CharField(label=_('Cardholder name'))
28 28
     cc_number = forms.CharField(label=_('Credit card number'))
29 29
     cc_checkcode = forms.CharField(label=_('Check code'))

0 notes on commit 93413e9

Please sign in to comment.
Something went wrong with that request. Please try again.