Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 913 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 913 Bytes

CircleCI codecov

version: 0.1.5

Usage:

from stdnumfield.models import StdNumField


class SomeMode(models.Model):
    field = StdNumField(
        'hr.oib',  # stdnum format
    )


class SampleModelForm(ModelForm):
    class Meta:
        model = SomeModel
        fields = ('field',)
        error_messages = {
            'field': {
                'stdnum_format':_("Not maching format %(format_list)s"),  # you can override exception message
            },
        }

What's an stdnum?

See python-stdnum