fix script galleries attribute error
This commit is contained in:
parent
c73cd51552
commit
ffc1dc38d4
|
@ -4,6 +4,7 @@ from tagging.fields import TagField
|
||||||
from django.core.paginator import Paginator, InvalidPage, EmptyPage
|
from django.core.paginator import Paginator, InvalidPage, EmptyPage
|
||||||
from app.models import ItfModel
|
from app.models import ItfModel
|
||||||
from itfprofiles.models import TheatreGroup
|
from itfprofiles.models import TheatreGroup
|
||||||
|
from mediagallery.models import GalleryAlbum
|
||||||
|
|
||||||
GENRES = (
|
GENRES = (
|
||||||
('Fiction', 'Fiction'),
|
('Fiction', 'Fiction'),
|
||||||
|
@ -44,6 +45,7 @@ class Script(ItfModel):
|
||||||
fk_fields = ['license_adapt', 'license_perform']
|
fk_fields = ['license_adapt', 'license_perform']
|
||||||
theatre_group = models.ForeignKey(TheatreGroup, help_text="Theatre Group, if any")
|
theatre_group = models.ForeignKey(TheatreGroup, help_text="Theatre Group, if any")
|
||||||
related_scripts = models.ManyToManyField("Script", through="ScriptScript", related_name='related_script')
|
related_scripts = models.ManyToManyField("Script", through="ScriptScript", related_name='related_script')
|
||||||
|
galleries = generic.GenericRelation(GalleryAlbum)
|
||||||
# add_form = 'ScriptForm'
|
# add_form = 'ScriptForm'
|
||||||
|
|
||||||
#Meta
|
#Meta
|
||||||
|
|
Loading…
Reference in New Issue
Block a user