Skip to content
Browse files

Removed useless intermediate function

  • Loading branch information...
1 parent 98fa4a9 commit 3c55c991ad8e9df4badcf84b0158edf62d91e6ed @stephane committed
Showing with 1 addition and 10 deletions.
  1. +1 −10 django_select2/widgets.py
View
11 django_select2/widgets.py
@@ -143,15 +143,6 @@ def get_options(self):
options['allowClear'] = not self.is_required
return options
- def render_select2_options_code(self, options, id_):
- """
- Renders options for Select2 JS.
-
- :return: The rendered JS code.
- :rtype: :py:obj:`unicode`
- """
- return convert_dict_to_js_map(options, id_)
-
def render_js_code(self, id_, *args):
"""
Renders the ``<script>`` block which contains the JS code for this widget.
@@ -171,7 +162,7 @@ def render_inner_js_code(self, id_, *args):
:rtype: :py:obj:`unicode`
"""
options = dict(self.get_options())
- options = self.render_select2_options_code(options, id_)
+ options = convert_dict_to_js_map(options, id_)
return u'$("#%s").select2(%s);' % (id_, options)

0 comments on commit 3c55c99

Please sign in to comment.
Something went wrong with that request. Please try again.