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
Release history Release notifications | RSS feed
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.tar.gz
(2.9 kB
view hashes)