summaryrefslogtreecommitdiff
path: root/conference/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'conference/models.py')
-rwxr-xr-xconference/models.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/conference/models.py b/conference/models.py
new file mode 100755
index 0000000..815608f
--- /dev/null
+++ b/conference/models.py
@@ -0,0 +1,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)
+
+