ernestophone.ens.fr/calendrier/models.py

15 lines
473 B
Python
Raw Normal View History

2015-04-13 18:56:43 +02:00
from django.db import models
class Event(models.Model):
nom = models.CharField(max_length=100)
date = models.DateField()
debut = models.TimeField()
fin = models.TimeField(blank=True, null=True)
lieu = models.CharField(max_length=200)
description = models.TextField(blank=True)
calendrier = models.BooleanField(default=False, verbose_name="Afficher dans le calendrier")
def __str__(self):
return self.nom
# Create your models here.