Skip to content

Commit

Permalink
# add price limit
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermoreno1 committed Apr 25, 2022
1 parent e7c9b06 commit 15e14bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def clean(self):
if price is None:
print("error")
raise forms.ValidationError({"price": ["Price can not be empty!"]})
elif price > 1000000:
elif price >= 1000000:
print("error")
raise forms.ValidationError(
{"price": ["Price can not be larger than 1000000!"]}
Expand Down

0 comments on commit 15e14bb

Please sign in to comment.