Skip to content
Snippets Groups Projects
Commit c01d0ef6 authored by Peter Pinch's avatar Peter Pinch
Browse files

modernize video_config

parent c0f13e78
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 12 deletions
......@@ -2,6 +2,7 @@
Django admin dashboard configuration for Video XModule.
"""
from __future__ import absolute_import
from config_models.admin import ConfigurationModelAdmin, KeyedConfigurationModelAdmin
from django.contrib import admin
......
"""
Defines a form for providing validation of HLS Playback course-specific configuration.
"""
from __future__ import absolute_import
import logging
from django import forms
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
from django.conf import settings
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
from django.conf import settings
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
import django.db.models.deletion
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-25 12:54
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-19 07:52
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
import django.utils.timezone
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-08-15 19:13
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.db import migrations, models
......
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-25 13:41
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals
from django.db import migrations, models
......
"""
Configuration models for Video XModule
"""
from django.db import models
from django.db.models import BooleanField, TextField, PositiveIntegerField
from __future__ import absolute_import
import six
from config_models.models import ConfigurationModel
from django.db import models
from django.db.models import BooleanField, PositiveIntegerField, TextField
from model_utils.models import TimeStampedModel
from opaque_keys.edx.django.models import CourseKeyField
URL_REGEX = r'^[a-zA-Z0-9\-_]*$'
......@@ -71,7 +73,7 @@ class CourseHLSPlaybackEnabledFlag(ConfigurationModel):
not_en = ""
return u"Course '{course_key}': HLS Playback {not_enabled}Enabled".format(
course_key=unicode(self.course_id),
course_key=six.text_type(self.course_id),
not_enabled=not_en
)
......@@ -140,7 +142,7 @@ class CourseVideoTranscriptEnabledFlag(ConfigurationModel):
not_en = ""
return u"Course '{course_key}': Video Transcript {not_enabled}Enabled".format(
course_key=unicode(self.course_id),
course_key=six.text_type(self.course_id),
not_enabled=not_en
)
......
"""
Tests for the models that configures HLS Playback feature.
"""
from __future__ import absolute_import
import ddt
import itertools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment