nome_contato = models.CharField('Nome do contato', maxlength=100)
telefone = models.CharField(maxlength=100)
cidade = models.CharField(maxlength=100)
- estado = models.CharField(maxlength=100) # TODO: can became a combobox
+ uf = models.CharField(maxlength=100) # TODO: should became a combobox
rua = models.CharField(maxlength=100)
numero = models.CharField('Número', maxlength=10)
info_adicional = models.TextField()
fields = (
(None, {'fields': ('nome', 'data_inicio', 'data_final')}),
('Informações da sede', {'fields': ('nome_local', 'nome_contato',
- 'cidade', 'estado', 'rua', 'numero', 'info_adicional')}),
+ 'cidade', 'uf', 'rua', 'numero', 'info_adicional')}),
)
def __str__(self):
return self.nome
+class Participante(models.Model):
+ nome = models.CharField(maxlength=100)
+
+ class Admin:
+ pass
+
+ def __str__(self):
+ return self.nome
+
+
class CategoriaPalestra(models.Model):
nome = models.CharField(maxlength=100)