coalition.content.models.video ============================== .. py:module:: coalition.content.models.video .. autoapi-nested-parse:: Video model for managing videos with metadata and attribution. Classes ------- .. autoapisummary:: coalition.content.models.video.Video Module Contents --------------- .. py:class:: Video(*args, **kwargs) Bases: :py:obj:`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. .. py:attribute:: video .. py:attribute:: title .. py:attribute:: alt_text .. py:attribute:: description .. py:attribute:: author .. py:attribute:: license .. py:attribute:: source_url .. py:attribute:: VIDEO_TYPES :value: [('general', 'General Video'), ('hero', 'Hero/Background Video'), ('content', 'Content Video'),... .. py:attribute:: video_type .. py:attribute:: autoplay .. py:attribute:: loop .. py:attribute:: muted .. py:attribute:: show_controls .. py:attribute:: created_at .. py:attribute:: updated_at .. py:attribute:: uploaded_by .. py:class:: Meta .. py:attribute:: db_table :value: 'video' .. py:attribute:: verbose_name :value: 'Video' .. py:attribute:: verbose_name_plural :value: 'Videos' .. py:attribute:: ordering :value: ['-created_at'] .. py:method:: __str__() -> str .. py:property:: video_url :type: str Return the URL of the uploaded video, or empty string if no video. .. py:method:: clean() -> None Validate that autoplay videos are muted. .. py:method:: save(*args: Any, **kwargs: Any) -> None Sanitize text fields before saving.