marcgibbons/django-rest-swagger — pull request #57 by davidn (2014-02-05 00:28:58+00:00)
Title: Use json serialization of enabled_methods

See issue #56

If the methods listed in enabled_methods are unicode (for example the
unicode_literals future is enabled in settings.py where SWAGGER_SETTINGS
is defined) then mark_safe will output u'get', which is not valid
javascript.

This commit uses json to output the enabled_methods, which will always
be javascript parseable.