Rename 16x9 to 16_9

We do this to reduce ambiguity about resolution vs aspect ratio.
This commit is contained in:
2019-04-19 11:50:41 +02:00
parent 06f5bc8f01
commit b68af6da8b
2 changed files with 3 additions and 3 deletions

View File

@@ -579,8 +579,8 @@ projects_schema = {
'picture_square': _file_embedded_schema, 'picture_square': _file_embedded_schema,
# Header # Header
'picture_header': _file_embedded_schema, 'picture_header': _file_embedded_schema,
# Picture 16x9 (for Open Graph) # Picture with a 16:9 aspect ratio (for Open Graph)
'picture_16x9': _file_embedded_schema, 'picture_16_9': _file_embedded_schema,
'header_node': dict( 'header_node': dict(
nullable=True, nullable=True,
**_node_embedded_schema **_node_embedded_schema

View File

@@ -30,7 +30,7 @@ class ProjectForm(FlaskForm):
('deleted', 'Deleted')]) ('deleted', 'Deleted')])
picture_header = FileSelectField('Picture header', file_format='image') picture_header = FileSelectField('Picture header', file_format='image')
picture_square = FileSelectField('Picture square', file_format='image') picture_square = FileSelectField('Picture square', file_format='image')
picture_16x9 = FileSelectField('Picture 16x9', file_format='image') picture_16_9 = FileSelectField('Picture 16:9', file_format='image')
def validate(self): def validate(self):
rv = FlaskForm.validate(self) rv = FlaskForm.validate(self)