1. Vladimir Sidorenko
  2. django-redactor

Commits

Guilherme Gondim  committed 6840f52

minor change

  • Participants
  • Parent commits c72c873
  • Branches default

Comments (0)

Files changed (1)

File redactor/widgets.py

View file
  • Ignore whitespace
 from django.conf import settings
 
 
-DEFAULT_OPTIONS = getattr(settings, 'REDACTOR_OPTIONS', {})
+OPTIONS = getattr(settings, 'REDACTOR_OPTIONS', {})
 
 INIT_JS = """<script type="text/javascript">
   jQuery(document).ready(function(){
         self.user_options = kwargs.pop('redactor_options', {})
 
     def get_options(self):
-        options = DEFAULT_OPTIONS.copy()
+        options = OPTIONS.copy()
         options.update(self.user_options)
         options.update({
             'imageUpload': reverse('redactor_upload_image', kwargs={'upload_to': self.upload_to}),