blob: 815608f0ca794278331b6482feb567c246759170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from django.db import models
TYPE = (("talk", "Talk"),
("tutorial", "Tutorial"),
("pk", "PK"))
class TalkTutorial(models.Model):
speaker = models.CharField(max_length=32)
title = models.CharField(max_length=512)
abstract = models.CharField(max_length=1024)
slides = models.CharField(max_length=64)
video = models.CharField(max_length=512)
type = models.CharField(max_length=10, choices=TYPE)
def __unicode__(self):
title = self.title
return '%s'%(title)
|