add language field to text model, output en and zh texts separately, refs #30
This commit is contained in:
parent
0c10a6ed2e
commit
21dab42524
5 changed files with 44 additions and 6 deletions
23
app/text/migrations/0008_auto_20211028_1007.py
Normal file
23
app/text/migrations/0008_auto_20211028_1007.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 3.2.7 on 2021-10-28 10:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('text', '0007_text_annotations'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='text',
|
||||
name='language',
|
||||
field=models.CharField(choices=[('en', 'EN'), ('zh', 'ZH')], default='en', max_length=8),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='text',
|
||||
name='annotations',
|
||||
field=models.JSONField(blank=True, default=dict, editable=False),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue