mirror of https://github.com/doccano/doccano.git
Clemens Wolff
5 years ago
12 changed files with 253 additions and 5 deletions
Split View
Diff Options
-
27app/api/migrations/0002_comment.py
-
8app/api/models.py
-
9app/api/permissions.py
-
16app/api/serializers.py
-
89app/api/tests/test_api.py
-
5app/api/urls.py
-
26app/api/views.py
-
26app/server/static/components/annotation.pug
-
46app/server/static/components/annotationMixin.js
-
2app/server/static/pages/document_classification.js
-
2app/server/static/pages/seq2seq.js
-
2app/server/static/pages/sequence_labeling.js
@ -0,0 +1,27 @@ |
|||
# Generated by Django 2.1.11 on 2019-12-12 19:11 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('api', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Comment', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('text', models.TextField()), |
|||
('created_at', models.DateTimeField(auto_now_add=True)), |
|||
('updated_at', models.DateTimeField(auto_now=True)), |
|||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='api.Document')), |
|||
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
), |
|||
] |
Write
Preview
Loading…
Cancel
Save