coalition.content.models.video

Video model for managing videos with metadata and attribution.

Classes

Video

Model for storing videos with metadata and attribution information.

Module Contents

class coalition.content.models.video.Video(*args, **kwargs)[source]

Bases: django.db.models.Model

Model for storing videos with metadata and attribution information.

This model handles video content across the application, providing proper attribution, licensing, and accessibility information.

video[source]
title[source]
alt_text[source]
description[source]
author[source]
license[source]
source_url[source]
VIDEO_TYPES = [('general', 'General Video'), ('hero', 'Hero/Background Video'), ('content', 'Content Video'),...[source]
video_type[source]
autoplay[source]
loop[source]
muted[source]
show_controls[source]
created_at[source]
updated_at[source]
uploaded_by[source]
class Meta[source]
db_table = 'video'[source]
verbose_name = 'Video'[source]
verbose_name_plural = 'Videos'[source]
ordering = ['-created_at'][source]
__str__() str[source]
property video_url: str[source]

Return the URL of the uploaded video, or empty string if no video.

clean() None[source]

Validate that autoplay videos are muted.

save(*args: Any, **kwargs: Any) None[source]

Sanitize text fields before saving.