Total Complexity | 1 |
Total Lines | 7 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from __future__ import absolute_import |
||
23 | class JSONPfiedCBV(view): |
||
24 | http_method_names = ['get'] # only GET method is allowed for JSONP |
||
25 | |||
26 | def get(self, request, *args, **kwargs): |
||
27 | return get_jsonp_response( |
||
28 | super(JSONPfiedCBV, self).get(request, *args, **kwargs), |
||
29 | callback=get_callback(request)) |
||
30 | |||
34 |