Skip to content

Commit

Permalink
removed uniqueness for video filename
Browse files Browse the repository at this point in the history
  • Loading branch information
antingshen committed Apr 18, 2017
1 parent b01a965 commit cffbe51
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 1 deletion.
60 changes: 60 additions & 0 deletions annotator/migrations/0007_auto_20170417_1814.py
@@ -0,0 +1,60 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-04-18 01:14
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('annotator', '0006_video_rejected'),
]

operations = [
migrations.AlterField(
model_name='label',
name='color',
field=models.CharField(blank=True, help_text='6 digit hex.', max_length=6),
),
migrations.AlterField(
model_name='label',
name='name',
field=models.CharField(blank=True, help_text='Name of class label option.', max_length=100, unique=True),
),
migrations.AlterField(
model_name='video',
name='annotation',
field=models.TextField(blank=True, help_text='A JSON blob containing all user annotation sent from client.'),
),
migrations.AlterField(
model_name='video',
name='filename',
field=models.CharField(blank=True, help_text='Name of the video file.The video should be publically accessible by at <host><filename>.', max_length=100),
),
migrations.AlterField(
model_name='video',
name='host',
field=models.CharField(blank=True, help_text='Path to prepend to filenames to form the url for this video or the images in `image_list`.', max_length=1048),
),
migrations.AlterField(
model_name='video',
name='image_list',
field=models.TextField(blank=True, help_text='List of filenames of images to be used as video frames, in JSON format.When present, image list is assumed and <filename> is ignored.'),
),
migrations.AlterField(
model_name='video',
name='rejected',
field=models.BooleanField(default=False, help_text='Rejected by expert.'),
),
migrations.AlterField(
model_name='video',
name='source',
field=models.CharField(blank=True, help_text='Name of video source or type, for easier grouping/searching of videos.This field is not used by BeaverDam and only facilitates querying on videos by type.', max_length=1048),
),
migrations.AlterField(
model_name='video',
name='verified',
field=models.BooleanField(default=False, help_text='Verified as correct by expert.'),
),
]
2 changes: 1 addition & 1 deletion annotator/models.py
Expand Up @@ -7,7 +7,7 @@ class Video(models.Model):
source = models.CharField(max_length=1048, blank=True,
help_text=("Name of video source or type, for easier grouping/searching of videos."
"This field is not used by BeaverDam and only facilitates querying on videos by type."))
filename = models.CharField(max_length=100, blank=True, unique=True,
filename = models.CharField(max_length=100, blank=True,
help_text=("Name of the video file."
"The video should be publically accessible by at <host><filename>."))
image_list = models.TextField(blank=True,
Expand Down
55 changes: 55 additions & 0 deletions mturk/migrations/0012_auto_20170417_1814.py
@@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-04-18 01:14
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('mturk', '0011_auto_20161129_1859'),
]

operations = [
migrations.AlterField(
model_name='fullvideotask',
name='assignment_id',
field=models.CharField(blank=True, help_text='ID of matching between this task and a worker. Used for authentication', max_length=64),
),
migrations.AlterField(
model_name='fullvideotask',
name='hit_group',
field=models.CharField(blank=True, help_text='Group ID on Mturk. HITs with same title/description usually are placed in the same group by MTurk. Auto-populated when publishing.', max_length=64),
),
migrations.AlterField(
model_name='fullvideotask',
name='hit_id',
field=models.CharField(blank=True, help_text='ID on MTurk. Auto-populated when publishing', max_length=64),
),
migrations.AlterField(
model_name='fullvideotask',
name='worker_id',
field=models.CharField(blank=True, help_text='ID of worker who submitted this HIT', max_length=64),
),
migrations.AlterField(
model_name='singleframetask',
name='assignment_id',
field=models.CharField(blank=True, help_text='ID of matching between this task and a worker. Used for authentication', max_length=64),
),
migrations.AlterField(
model_name='singleframetask',
name='hit_group',
field=models.CharField(blank=True, help_text='Group ID on Mturk. HITs with same title/description usually are placed in the same group by MTurk. Auto-populated when publishing.', max_length=64),
),
migrations.AlterField(
model_name='singleframetask',
name='hit_id',
field=models.CharField(blank=True, help_text='ID on MTurk. Auto-populated when publishing', max_length=64),
),
migrations.AlterField(
model_name='singleframetask',
name='worker_id',
field=models.CharField(blank=True, help_text='ID of worker who submitted this HIT', max_length=64),
),
]

0 comments on commit cffbe51

Please sign in to comment.