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.1.tar.gz
(3.9 kB
view details)
File details
Details for the file django-cpffield-0.1.1.tar.gz.
File metadata
- Download URL: django-cpffield-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21001cd557e72f1c8e93ff4781949834b0dec37db17f7d87b66d739455477d75
|
|
| MD5 |
2b694603a6d9c1fec400c9ef55917d4a
|
|
| BLAKE2b-256 |
11ae91076253a362213781d53923a08f6ffb0d3e74b61e644b23220f7d2a5dff
|