adicionando as views e fazendo o login funcionar
[cascardo/eventmanager.git] / eventos / models.py
index cc9c965..4d96f24 100644 (file)
@@ -29,7 +29,7 @@ class Evento(models.Model):
     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()
@@ -38,7 +38,7 @@ class Evento(models.Model):
         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):
@@ -86,6 +86,16 @@ class Palestrante(models.Model):
         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)