diff options
-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.") |