From ffc1dc38d4dcf5f01dcbaecee3ab7f7cac66b515 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 5 Dec 2012 11:43:00 +0530 Subject: [PATCH] fix script galleries attribute error --- itf/scriptbank/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/itf/scriptbank/models.py b/itf/scriptbank/models.py index b577188..ff1fbe9 100755 --- a/itf/scriptbank/models.py +++ b/itf/scriptbank/models.py @@ -4,6 +4,7 @@ from tagging.fields import TagField from django.core.paginator import Paginator, InvalidPage, EmptyPage from app.models import ItfModel from itfprofiles.models import TheatreGroup +from mediagallery.models import GalleryAlbum GENRES = ( ('Fiction', 'Fiction'), @@ -44,6 +45,7 @@ class Script(ItfModel): fk_fields = ['license_adapt', 'license_perform'] theatre_group = models.ForeignKey(TheatreGroup, help_text="Theatre Group, if any") related_scripts = models.ManyToManyField("Script", through="ScriptScript", related_name='related_script') + galleries = generic.GenericRelation(GalleryAlbum) # add_form = 'ScriptForm' #Meta