File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ INSTALLED_APPS = [
26
26
]
27
27
```
28
28
29
+ ## Upgrade
30
+
31
+ ``` bash
32
+ pip install django-editorjs-fields --upgrade
33
+ python manage.py collectstatic # upgrade js and css files
34
+ ```
35
+
36
+
29
37
## Usage
30
38
31
39
Add code in your model
@@ -282,8 +290,8 @@ file.
282
290
| ` EDITORJS_IMAGE_UPLOAD_PATH ` | Path uploads images | ` uploads/images/ ` | ` str ` |
283
291
| ` EDITORJS_IMAGE_UPLOAD_PATH_DATE ` | Subdirectories | ` %Y/%m/ ` | ` str ` |
284
292
| ` EDITORJS_IMAGE_NAME_ORIGINAL ` | To use the original name of the image file? | ` False ` | ` bool ` |
285
- | ` EDITORJS_IMAGE_NAME ` | Image file name. Ignored when ` EDITORJS_IMAGE_NAME_ORIGINAL ` is ` True ` | ` token_urlsafe(8) ` | ` callable(filename: str, file: django.core.files.uploadedfile. InMemoryUploadedFile) ` ([ docs] ( https://docs.djangoproject.com/en/3.0/ref/files/uploads/ ) ) |
286
- | ` EDITORJS_VERSION ` | Version Editor.js | ` 2.22.2 ` | ` str ` |
293
+ | ` EDITORJS_IMAGE_NAME ` | Image file name. Ignored when ` EDITORJS_IMAGE_NAME_ORIGINAL ` is ` True ` | ` token_urlsafe(8) ` | ` callable(filename: str, file: InMemoryUploadedFile) ` ([ docs] ( https://docs.djangoproject.com/en/3.0/ref/files/uploads/ ) ) |
294
+ | ` EDITORJS_VERSION ` | Version Editor.js | ` 2.22.3 ` | ` str ` |
287
295
288
296
For ` EDITORJS_IMAGE_NAME ` was used ` from secrets import token_urlsafe `
289
297
You can’t perform that action at this time.
0 commit comments