Rename 16x9 to 16_9
We do this to reduce ambiguity about resolution vs aspect ratio.
This commit is contained in:
@@ -579,8 +579,8 @@ projects_schema = {
|
||||
'picture_square': _file_embedded_schema,
|
||||
# Header
|
||||
'picture_header': _file_embedded_schema,
|
||||
# Picture 16x9 (for Open Graph)
|
||||
'picture_16x9': _file_embedded_schema,
|
||||
# Picture with a 16:9 aspect ratio (for Open Graph)
|
||||
'picture_16_9': _file_embedded_schema,
|
||||
'header_node': dict(
|
||||
nullable=True,
|
||||
**_node_embedded_schema
|
||||
|
@@ -30,7 +30,7 @@ class ProjectForm(FlaskForm):
|
||||
('deleted', 'Deleted')])
|
||||
picture_header = FileSelectField('Picture header', 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):
|
||||
rv = FlaskForm.validate(self)
|
||||
|
Reference in New Issue
Block a user