From b68af6da8bc88e355c3a293f1fd73df7bf72810e Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Fri, 19 Apr 2019 11:50:41 +0200 Subject: [PATCH] Rename 16x9 to 16_9 We do this to reduce ambiguity about resolution vs aspect ratio. --- pillar/api/eve_settings.py | 4 ++-- pillar/web/projects/forms.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pillar/api/eve_settings.py b/pillar/api/eve_settings.py index def7c632..3994130d 100644 --- a/pillar/api/eve_settings.py +++ b/pillar/api/eve_settings.py @@ -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 diff --git a/pillar/web/projects/forms.py b/pillar/web/projects/forms.py index ac7b0ef7..bfd9830f 100644 --- a/pillar/web/projects/forms.py +++ b/pillar/web/projects/forms.py @@ -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)