Skip to content

Commit 63c0252

Browse files
committed
Example
1 parent 67b7e54 commit 63c0252

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 3.2.7 on 2021-09-22 14:33
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
import django_editorjs_fields.fields
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('blog', '0001_initial'),
12+
]
13+
14+
operations = [
15+
migrations.CreateModel(
16+
name='Comment',
17+
fields=[
18+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19+
('content', django_editorjs_fields.fields.EditorJsJSONField(blank=True, null=True)),
20+
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.post')),
21+
],
22+
),
23+
]

example/example/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
MEDIA_URL = "/media/"
139139

140140
# django_editorjs_fields
141-
EDITORJS_VERSION = '2.22.1'
141+
EDITORJS_VERSION = '2.22.3'
142142
# EDITORJS_IMAGE_NAME_ORIGINAL = True
143143
# EDITORJS_IMAGE_UPLOAD_PATH_DATE = None
144144
# EDITORJS_IMAGE_NAME = lambda filename, **_: f"{filename}_12345"

0 commit comments

Comments
 (0)