mirror of https://github.com/doccano/doccano.git
Hironsan
5 years ago
14 changed files with 471 additions and 343 deletions
Split View
Diff Options
-
71app/server/migrations/0001_initial.py
-
18app/server/migrations/0002_document_metadata.py
-
18app/server/migrations/0003_shortcut.py
-
123app/server/migrations/0004_auto_20190306_0626.py
-
18app/server/migrations/0005_auto_20190306_0853.py
-
40app/server/models.py
-
25app/server/serializers.py
-
132app/server/static/js/label.js
-
8app/server/static/js/mixin.js
-
291app/server/templates/admin/label.html
-
4app/server/templates/annotation/document_classification.html
-
4app/server/templates/annotation/sequence_labeling.html
-
11app/server/tests/test_api.py
-
51app/server/tests/test_models.py
@ -1,18 +0,0 @@ |
|||
# Generated by Django 2.1.2 on 2018-12-26 10:23 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('server', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='document', |
|||
name='metadata', |
|||
field=models.TextField(default='{}'), |
|||
), |
|||
] |
@ -1,18 +0,0 @@ |
|||
# Generated by Django 2.1.5 on 2019-02-06 02:00 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('server', '0002_document_metadata'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='label', |
|||
name='shortcut', |
|||
field=models.CharField(blank=True, choices=[('a', 'a'), ('b', 'b'), ('c', 'c'), ('d', 'd'), ('e', 'e'), ('f', 'f'), ('g', 'g'), ('h', 'h'), ('i', 'i'), ('j', 'j'), ('k', 'k'), ('l', 'l'), ('m', 'm'), ('n', 'n'), ('o', 'o'), ('p', 'p'), ('q', 'q'), ('r', 'r'), ('s', 's'), ('t', 't'), ('u', 'u'), ('v', 'v'), ('w', 'w'), ('x', 'x'), ('y', 'y'), ('z', 'z'), ('ctrl a', 'ctrl a'), ('ctrl b', 'ctrl b'), ('ctrl c', 'ctrl c'), ('ctrl d', 'ctrl d'), ('ctrl e', 'ctrl e'), ('ctrl f', 'ctrl f'), ('ctrl g', 'ctrl g'), ('ctrl h', 'ctrl h'), ('ctrl i', 'ctrl i'), ('ctrl j', 'ctrl j'), ('ctrl k', 'ctrl k'), ('ctrl l', 'ctrl l'), ('ctrl m', 'ctrl m'), ('ctrl n', 'ctrl n'), ('ctrl o', 'ctrl o'), ('ctrl p', 'ctrl p'), ('ctrl q', 'ctrl q'), ('ctrl r', 'ctrl r'), ('ctrl s', 'ctrl s'), ('ctrl t', 'ctrl t'), ('ctrl u', 'ctrl u'), ('ctrl v', 'ctrl v'), ('ctrl w', 'ctrl w'), ('ctrl x', 'ctrl x'), ('ctrl y', 'ctrl y'), ('ctrl z', 'ctrl z'), ('shift a', 'shift a'), ('shift b', 'shift b'), ('shift c', 'shift c'), ('shift d', 'shift d'), ('shift e', 'shift e'), ('shift f', 'shift f'), ('shift g', 'shift g'), ('shift h', 'shift h'), ('shift i', 'shift i'), ('shift j', 'shift j'), ('shift k', 'shift k'), ('shift l', 'shift l'), ('shift m', 'shift m'), ('shift n', 'shift n'), ('shift o', 'shift o'), ('shift p', 'shift p'), ('shift q', 'shift q'), ('shift r', 'shift r'), ('shift s', 'shift s'), ('shift t', 'shift t'), ('shift u', 'shift u'), ('shift v', 'shift v'), ('shift w', 'shift w'), ('shift x', 'shift x'), ('shift y', 'shift y'), ('shift z', 'shift z'), ('ctrl shift a', 'ctrl shift a'), ('ctrl shift b', 'ctrl shift b'), ('ctrl shift c', 'ctrl shift c'), ('ctrl shift d', 'ctrl shift d'), ('ctrl shift e', 'ctrl shift e'), ('ctrl shift f', 'ctrl shift f'), ('ctrl shift g', 'ctrl shift g'), ('ctrl shift h', 'ctrl shift h'), ('ctrl shift i', 'ctrl shift i'), ('ctrl shift j', 'ctrl shift j'), ('ctrl shift k', 'ctrl shift k'), ('ctrl shift l', 'ctrl shift l'), ('ctrl shift m', 'ctrl shift m'), ('ctrl shift n', 'ctrl shift n'), ('ctrl shift o', 'ctrl shift o'), ('ctrl shift p', 'ctrl shift p'), ('ctrl shift q', 'ctrl shift q'), ('ctrl shift r', 'ctrl shift r'), ('ctrl shift s', 'ctrl shift s'), ('ctrl shift t', 'ctrl shift t'), ('ctrl shift u', 'ctrl shift u'), ('ctrl shift v', 'ctrl shift v'), ('ctrl shift w', 'ctrl shift w'), ('ctrl shift x', 'ctrl shift x'), ('ctrl shift y', 'ctrl shift y'), ('ctrl shift z', 'ctrl shift z'), ('', '')], max_length=15, null=True), |
|||
), |
|||
] |
@ -1,123 +0,0 @@ |
|||
# Generated by Django 2.1.5 on 2019-03-06 06:26 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import django.utils.timezone |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('contenttypes', '0002_remove_content_type_name'), |
|||
('server', '0003_shortcut'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Seq2seqProject', |
|||
fields=[ |
|||
('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='server.Project')), |
|||
], |
|||
options={ |
|||
'abstract': False, |
|||
'base_manager_name': 'objects', |
|||
}, |
|||
bases=('server.project',), |
|||
), |
|||
migrations.CreateModel( |
|||
name='SequenceLabelingProject', |
|||
fields=[ |
|||
('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='server.Project')), |
|||
], |
|||
options={ |
|||
'abstract': False, |
|||
'base_manager_name': 'objects', |
|||
}, |
|||
bases=('server.project',), |
|||
), |
|||
migrations.CreateModel( |
|||
name='TextClassificationProject', |
|||
fields=[ |
|||
('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='server.Project')), |
|||
], |
|||
options={ |
|||
'abstract': False, |
|||
'base_manager_name': 'objects', |
|||
}, |
|||
bases=('server.project',), |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='project', |
|||
options={'base_manager_name': 'objects'}, |
|||
), |
|||
migrations.AddField( |
|||
model_name='document', |
|||
name='created_at', |
|||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='document', |
|||
name='updated_at', |
|||
field=models.DateTimeField(auto_now=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='documentannotation', |
|||
name='created_at', |
|||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='documentannotation', |
|||
name='updated_at', |
|||
field=models.DateTimeField(auto_now=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='label', |
|||
name='created_at', |
|||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='label', |
|||
name='updated_at', |
|||
field=models.DateTimeField(auto_now=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='project', |
|||
name='polymorphic_ctype', |
|||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_server.project_set+', to='contenttypes.ContentType'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='seq2seqannotation', |
|||
name='created_at', |
|||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='seq2seqannotation', |
|||
name='updated_at', |
|||
field=models.DateTimeField(auto_now=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='sequenceannotation', |
|||
name='created_at', |
|||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), |
|||
preserve_default=False, |
|||
), |
|||
migrations.AddField( |
|||
model_name='sequenceannotation', |
|||
name='updated_at', |
|||
field=models.DateTimeField(auto_now=True), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='project', |
|||
name='description', |
|||
field=models.TextField(default=''), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='project', |
|||
name='guideline', |
|||
field=models.TextField(default=''), |
|||
), |
|||
] |
@ -1,18 +0,0 @@ |
|||
# Generated by Django 2.1.7 on 2019-03-06 08:53 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('server', '0004_auto_20190306_0626'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RenameField( |
|||
model_name='document', |
|||
old_name='metadata', |
|||
new_name='meta', |
|||
), |
|||
] |
Write
Preview
Loading…
Cancel
Save