adjust talk model for padmaclip

This commit is contained in:
Sanj 2012-04-09 04:01:16 +05:30
parent 9e3a4aa979
commit ca48b99718

View File

@ -3,7 +3,7 @@ import datetime
import time
from ckeditor.fields import RichTextField
from app.models import ItfModel
from padmavideos.models import PadmaVideo
from padmavideos.models import PadmaClip
from django.contrib.contenttypes import generic
class Comment(models.Model):
@ -132,7 +132,7 @@ class Talk(models.Model):
intro = models.TextField(blank=True, null=True)
presenter = models.CharField(max_length=255, blank=True)
session = models.ForeignKey('Session') # name of meeting - name of session
videos = generic.GenericRelation(PadmaVideo)
videos = generic.GenericRelation(PadmaClip)
def __unicode__(self):
return "%s - %s" % (self.session.day.meeting.title, self.title) # name of meeting - name of session