add annotations field to Text model, fetch annotations on Save
This commit is contained in:
parent
f265723500
commit
cac92d94f0
4 changed files with 110 additions and 2 deletions
18
app/text/migrations/0007_text_annotations.py
Normal file
18
app/text/migrations/0007_text_annotations.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.2.7 on 2021-10-23 09:46
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('text', '0006_text_position'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='text',
|
||||
name='annotations',
|
||||
field=models.JSONField(default=dict),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue