Skip to main content

CPF Field to use in Django Model Form

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cpffield-0.1.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page