Remove 16_9 image from extension props

This property is now available on Project level.
This commit is contained in:
2019-04-19 12:52:47 +02:00
parent a04e62e3e9
commit 4f9699c7ae
3 changed files with 1 additions and 6 deletions

View File

@@ -8,7 +8,6 @@ from pillar.web.utils.forms import FileSelectField
class FilmProjectForm(FlaskForm):
video_url = URLField(validators=[URL()])
picture_16_9 = FileSelectField('Picture 16x9', file_format='image')
poster = FileSelectField('Poster Image', file_format='image')
logo = FileSelectField('Logo', file_format='image')
is_in_production = BooleanField('In Production')

View File

@@ -471,10 +471,7 @@ def project_landing(project_url):
# number of additional attributes (pages, images, etc.).
if 'extension_props' in project and EXTENSION_NAME in project['extension_props']:
extension_props = project['extension_props'][EXTENSION_NAME]
file_props = {'picture_16_9', 'logo'}
for f in file_props:
if f in extension_props:
extension_props[f] = get_file(extension_props[f])
extension_props['logo'] = get_file(extension_props['logo'])
pages = Node.all({
'where': {

View File

@@ -39,7 +39,6 @@ def setup_for_film(project_url):
'logo': None, # File ObjectId
# TODO(fsiddi) when we introduce other setup_for_* in Blender Cloud, make available
# at a higher scope
'picture_16_9': None,
'is_featured': False,
}