Skip to content

Commit 4ce91c1

Browse files
author
Alexander Bogushov
committed
Remove sceditor from example
1 parent 0162bd5 commit 4ce91c1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

example/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
To run example to this steps:
44

55
```bash
6+
cd example
67
python3 -m venv env
78
. env/bin/activate
89
pip install -r requirements.txt

example/app/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Meta:
6464
model = JSONModel
6565
fields = '__all__'
6666
widgets = {
67-
'data': JSONEditorWidget(DATA_SCHEMA, collapsed=False, sceditor=True),
67+
'data': JSONEditorWidget(DATA_SCHEMA, collapsed=False),
6868
}
6969

7070

example/app/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class JSONModel(models.Model):
1111

1212

1313
class ArrayJSONModel(models.Model):
14-
roles = JSONField(default=[])
14+
roles = JSONField(default=list)
1515

1616

1717
class Tag(models.Model):

0 commit comments

Comments
 (0)