sorry, like any other newb, there's a long path to achieve nettiquette
goals :)

My environment
Django 0.91
DB: sqlite3
---cut here---
from django.core import meta

CLASSES_EVENTO = (
        (0,'Sem Classe'),
        (1,'Pequeno Príncipe'),
        (2,'Ensino Fundamental I'),
        (3,'Ensino Fundamental II'),
        (4,'Ensino Fundamental'),
        (5,'Ensino Médio'),
        (6,'Administração'),
)
# Create your models here.

class Evento(meta.Model):
        nome = meta.CharField(maxlength=100, help_text='Nome do
Evento')
        desc = meta.TextField(maxlength=255, blank=True,
help_text='Descrição do evento')
        data = meta.DateField(blank=False, help_text='Data do Evento')
        hora = meta.TimeField(help_text='Horário do Evento')
        resp = meta.CharField(maxlength=80, help_text='Responsável')
        local = meta.CharField(maxlength=100, help_text='Lugar a ser
realizado o Evento')
        evt_class = meta.SmallIntegerField(choices=CLASSES_EVENTO)
        is_letivo = meta.BooleanField(help_text='Especifique se é dia
letivo')
        data_pub = meta.DateTimeField(auto_now_add=True,
help_text='Data de Publicação')

        def __repr__(self):
                return self.nome
        class META:
                admin = meta.Admin(search_fields=('nome',),
list_display=('data','hora','nome','resp'))


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to