Skip to content

silviolleite/cfp-field

Repository files navigation

CPF Field to use in Django Model Form

image

Latest PyPI version

cfp-field This is a test implementatipon of the CPF Validation as part of the "Mão na Massa" proposal of the 4th module of Welcome to the Django training (http://welcometothedjango.com.br/).

Como instalar?

pip install django-cpffield

Add "cpffield" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'cpffield',
]

Como utilizar dentro de um model.py no django?

from django.db import models
from cpffield import cpffield


class MyModel(models.Model):
    cpf = cpffield.CPFField('CPF', max_length=14)

About

CPF Field to use in Django Model Form

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages