Skip to content

auto-mat/django-stdnumfield

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • HTML 1.2%
  • Shell 1.2%