mirror of https://github.com/interlegis/sigi.git
Guilherme Gondim
17 years ago
3 changed files with 26 additions and 10 deletions
@ -0,0 +1,15 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from django import forms |
|||
from django.contrib.localflavor.br.forms import BRCNPJField, BRZipCodeField |
|||
from sigi.apps.casas.models import CasaLegislativa |
|||
|
|||
class CasaLegislativaForm(forms.ModelForm): |
|||
cnpj = BRCNPJField( |
|||
label='CNPJ', |
|||
help_text='Utilize o formato <em>XX.XXX.XXX/XXXX-XX</em> ou ' |
|||
'insira apenas os dígitos.' |
|||
) |
|||
cep = BRZipCodeField(label='CEP', help_text='Formato: <em>XXXXX-XXX</em>.') |
|||
|
|||
class Meta: |
|||
model = CasaLegislativa |
Loading…
Reference in new issue