Skip to content

Commit

Permalink
The url for uploaded attachments should not be added when disable_att…
Browse files Browse the repository at this point in the history
…achment is True
  • Loading branch information
lqez committed Feb 12, 2021
1 parent ed47c79 commit 073eaaa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions django_summernote/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
path('editor/<id>/', SummernoteEditor.as_view(),
name='django_summernote-editor'),
]

if not get_config()['disable_attachment']:
urlpatterns += [
path('upload_attachment/', SummernoteUploadAttachment.as_view(),
name='django_summernote-upload_attachment'),
]

0 comments on commit 073eaaa

Please sign in to comment.