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 = [
2626]
2727```
2828
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+
2937## Usage
3038
3139Add code in your model
@@ -282,8 +290,8 @@ file.
282290| ` EDITORJS_IMAGE_UPLOAD_PATH ` | Path uploads images | ` uploads/images/ ` | ` str ` |
283291| ` EDITORJS_IMAGE_UPLOAD_PATH_DATE ` | Subdirectories | ` %Y/%m/ ` | ` str ` |
284292| ` 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 ` |
287295
288296For ` EDITORJS_IMAGE_NAME ` was used ` from secrets import token_urlsafe `
289297
You can’t perform that action at this time.
0 commit comments