Skip to content

Commit

Permalink
Merge pull request #9 from mattduck/fix-use-of-django-settings
Browse files Browse the repository at this point in the history
Make widget respect the documented settings
  • Loading branch information
isDipesh committed Feb 18, 2015
2 parents d6510c7 + dcb1c87 commit 597f51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions froala_editor/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def __init__(self, *args, **kwargs):
'font_size', 'font_family', 'colors', 'block_styles', 'video', 'tables', 'media_manager', 'lists',
'file_upload'
)))
self.theme = kwargs.pop('theme', None)
self.include_jquery = kwargs.pop('include_jquery', True)
self.theme = kwargs.pop('theme', getattr(settings, 'FROALA_EDITOR_THEME', None))
self.include_jquery = kwargs.pop('include_jquery', getattr(settings, 'FROALA_INCLUDE_JQUERY', True))
self.image_upload = kwargs.pop('image_upload', True)
self.file_upload = kwargs.pop('file_upload', True)
super(FroalaEditor, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 597f51d

Please sign in to comment.