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

Add separate EAN validator, #156

Merged
merged 1 commit into from
Jun 4, 2015
Merged

Conversation

camillobruni
Copy link
Contributor

In prepration for new Swiss SSN / AHV Field

@camillobruni camillobruni force-pushed the add-ean-validator branch 2 times, most recently from 9eddb24 to 58e0e6e Compare June 3, 2015 15:37
"""

def __init__(self, strip_nondigits=False, error_message=None):
self.error_message = error_message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we mimic the error message implementation of Django core validators? That is a default message = _(...) on the class, a message keyword argument and the if message is not None: self.message = message sequence in __init__.

@claudep
Copy link
Member

claudep commented Jun 4, 2015

Tests are now failing with Python 3, see Travis CI details.

To be used in Swiss SSN implementation
claudep added a commit that referenced this pull request Jun 4, 2015
Added EAN validator in generic module
@claudep claudep merged commit 168f9ec into django:master Jun 4, 2015
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

Successfully merging this pull request may close these issues.

2 participants