Commit bb88e691 authored by Julia Anishka's avatar Julia Anishka

fixed error in line 21 models.py

parent d4e7dea4
......@@ -18,7 +18,7 @@ def verify_int(value):
raise ValidationError('ISBN must only be integers.')
def verify_wordCount(value):
word_count = str(len(value.split()))
word_count = int(len(value.split()))
if word_count < 100:
raise ValidationError('Word count is less than 100. Required range is 100 to 200 words.')
if word_count > 200:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment