fix script galleries attribute error

This commit is contained in:
Sanj 2012-12-05 11:43:00 +05:30
parent c73cd51552
commit ffc1dc38d4

View File

@ -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