Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form chapter: Unique validator missing init message #87

Open
dengshuan opened this issue Apr 16, 2015 · 0 comments
Open

Form chapter: Unique validator missing init message #87

dengshuan opened this issue Apr 16, 2015 · 0 comments

Comments

@dengshuan
Copy link

In Handling Forms chapter, Unique validator doesn't initialize message. Should be changed to this:

def __init__(self, model, field, message=u'This element already exists.'):
    self.model = model
    self.field = field
    self.message = message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant