local = models.CharField(max_length=100)
nome_contato = models.CharField(u'Nome do contato', max_length=100)
telefone = models.CharField(max_length=100)
+ endereco = models.TextField()
cidade = models.CharField(max_length=100)
estado = models.CharField(max_length=2, choices=STATE_CHOICES)
- rua = models.CharField(max_length=100)
- numero = models.CharField(u'Número', max_length=10)
info_adicional = models.TextField(blank=True)
class Admin:
{'fields': ('nome', 'data_inicio', 'data_final')}),
(u'Informações da sede',
- {'fields': ('local', 'nome_contato', 'rua', 'numero', 'cidade',
+ {'fields': ('local', 'nome_contato', 'endereco', 'cidade',
'estado', 'telefone', 'info_adicional')}),
)
instituicao = models.CharField(u'Instituição', max_length=250, blank=True)
- rua = models.CharField(max_length=100)
- numero = models.CharField(u'Número', max_length=10)
- bairro = models.CharField(max_length=100)
+ endereco = models.TextField()
+ cep = models.CharField(max_length=5)
cidade = models.CharField(max_length=100)
estado = models.CharField(max_length=2, choices=STATE_CHOICES)
(u'Telefones', {'fields': ('telefone', 'celular')}),
- (u'Endereço', {'fields': ('rua', 'numero',
- 'bairro', 'cidade', 'estado')}),
+ (u'Endereço', {'fields': ('endereco', 'cep', 'cidade', 'estado')}),
(u'Avançado', {'fields': ('usuario',),
'classes': 'collapse'}),