Commits

Guilherme Gondim committed adf0e79

minor improvement in variable names

Comments (0)

Files changed (1)

redactor/widgets.py

 from django.conf import settings
 
 
-OPTIONS = getattr(settings, 'REDACTOR_OPTIONS', {})
+GLOBAL_OPTIONS = getattr(settings, 'REDACTOR_OPTIONS', {})
 
 INIT_JS = """<script type="text/javascript">
   jQuery(document).ready(function(){
     def __init__(self, *args, **kwargs):
         super(RedactorEditor, self).__init__(*args, **kwargs)
         self.upload_to = kwargs.pop('upload_to', '')
-        self.user_options = kwargs.pop('redactor_options', {})
+        self.custom_options = kwargs.pop('redactor_options', {})
 
     def get_options(self):
-        options = OPTIONS.copy()
-        options.update(self.user_options)
+        options = GLOBAL_OPTIONS.copy()
+        options.update(self.custom_options)
         options.update({
             'imageUpload': reverse('redactor_upload_image', kwargs={'upload_to': self.upload_to}),
             'fileUpload': reverse('redactor_upload_file', kwargs={'upload_to': self.upload_to})