Skip to content

[WV-5372]Office Explainer: Add the ability to save YouTube videos (in addition to existing Vimeo) [TEAM REVIEW] - #3344

Merged
DaleMcGrew merged 2 commits into
wevote:developfrom
pravingv:WV_5372_Office_explainer_youtube
Dec 2, 2026
Merged

DaleMcGrew merged 2 commits into
wevote:developfrom
pravingv:WV_5372_Office_explainer_youtube

Conversation

@pravingv

@pravingv pravingv commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What github.com/wevote/WebApp/issues does this fix?

WV-5372Office Explainer: Add the ability to save YouTube videos (in addition to existing Vimeo)

Changes Included

office/migrations/0013_officeexplanation_youtube_url_horizontal_and_more.py
office/models.py

  • Added youtube_url_horizontal and youtube_url_vertical (TextField(null=True)) to OfficeExplanation.
  • Added migration 0013_officeexplanation_youtube_url_horizontal_and_more.py.

office/views_admin.py

  • Updated office_explanation_process_view to read youtube_url_horizontal and youtube_url_vertical from POST data and save them when creating or updating an OfficeExplanation.

templates/office/office_explanation_edit.html

  • Added form inputs for YouTube Video URL (Horizontal) and YouTube Video URL (Vertical).
  • Updated the video preview getActiveUrl() helper to fall back to the horizontal/vertical YouTube URL inputs when the primary video URL field is empty.

templates/office/office_explanations_list.html

  • Replaced raw URL text in the video column with compact Vimeo and YouTube links (target="_blank" rel="noopener noreferrer", full URL in title tooltip), separated by || when both are present.

@DaleMcGrew
DaleMcGrew merged commit f3ca022 into wevote:develop Dec 2, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants