Allow Vimeo as well as YouTube URLs. Closes #26.

This commit is contained in:
2018-03-31 17:18:35 +11:00
parent 0f0f78bd24
commit 5f2941d205
4 changed files with 62 additions and 9 deletions

View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-03-31 06:04
from __future__ import unicode_literals
import apps.map.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('map', '0045_auto_20180331_0517'),
]
operations = [
migrations.AlterField(
model_name='casestudy',
name='video',
field=models.URLField(blank=True, default='', help_text='Copy the URL to a YouTube or Vimeo video that relates to the case study.', max_length=80, validators=[apps.map.validators.YouTubeOrVimeoValidator()], verbose_name='Video URL'),
preserve_default=False,
),
]