Skip to content

Commit

Permalink
Fix incomplete validator
Browse files Browse the repository at this point in the history
  • Loading branch information
abdusco committed Jul 19, 2019
1 parent 62aff72 commit 44787d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ clean:

.PHONY: html
html: clean
./schema_mapping.py
mkdir -p $(STATICDIR)
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. open file://`pwd`/_build/html/index.html"
Expand Down
1 change: 1 addition & 0 deletions docs/examples/validators_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def passwords_match(cls, v, values, **kwargs):
@validator('username')
def username_alphanumeric(cls, v):
assert v.isalpha(), 'must be alphanumeric'
return v


print(UserModel(name='samuel colvin', password1='zxcvbn', password2='zxcvbn'))
Expand Down

0 comments on commit 44787d6

Please sign in to comment.