Permalink
Browse files

Add about admin in README.md

  • Loading branch information...
1 parent e2ed1ee commit 39f8eafe30af68af1a141dae51896e6c8b3ca24d @hyesun03 hyesun03 committed Dec 5, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
@@ -43,11 +43,14 @@ USAGE
In `admin.py`,
from django_summernote.admin import SummernoteModelAdmin
+ from .models import SomeModel
# Apply summernote to all TextField in model.
class SomeModelAdmin(SummernoteModelAdmin): # instead of ModelAdmin
...
+ admin.site.register(SomeModel, SomeModelAdmin)
+
Or, in `forms`,
from django_summernote.widgets import SummernoteWidget, SummernoteInplaceWidget
@@ -161,7 +164,7 @@ In settings.py,
# You can disable file upload feature.
'disable_upload': False,
-
+
# Codemirror as codeview
'codemirror': {
# Please visit http://summernote.org/examples/#codemirror-as-codeview

0 comments on commit 39f8eaf

Please sign in to comment.