diff options
author | Primal Pappachan | 2012-04-13 10:22:06 +0530 |
---|---|---|
committer | Primal Pappachan | 2012-04-13 10:22:06 +0530 |
commit | b0a67f1f3fe056ed049ad1e703237ec093c7cc14 (patch) | |
tree | 36ae4e1eca6f73bcffe0e890c85f3ea746bbfc05 | |
parent | ebbbdd6b7d3ca52c2b1524e86169d10466bad323 (diff) | |
download | aloha-b0a67f1f3fe056ed049ad1e703237ec093c7cc14.tar.gz aloha-b0a67f1f3fe056ed049ad1e703237ec093c7cc14.tar.bz2 aloha-b0a67f1f3fe056ed049ad1e703237ec093c7cc14.zip |
or instead of and for dd_no and dd_amount check
-rw-r--r-- | aloha/allotter/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aloha/allotter/forms.py b/aloha/allotter/forms.py index 9747cf3..a2b205c 100644 --- a/aloha/allotter/forms.py +++ b/aloha/allotter/forms.py @@ -99,7 +99,7 @@ class UserLoginForm(forms.Form): ##Validating the DD Details - if not dd_no and not dd_amount: + if not dd_no or not dd_amount: raise forms.ValidationError("Fill in the Demand Draft Details") elif len(dd_no) != 6 or dd_no.count('0') == 6 or dd_no.strip(digits): raise forms.ValidationError("Demand Draft Number you have entered is not valid.") |