move the underscore tempaltes to /static/client-templates and update the references

This commit is contained in:
Chris Dodge
2012-12-10 10:01:08 -05:00
parent 457b4aa645
commit 79e48dde97
6 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ def expect_json(view_function):
def expect_json_with_cloned_request(request, *args, **kwargs):
# cdodge: fix postback errors in CMS. The POST 'content-type' header can include additional information
# e.g. 'charset', so we can't do a direct string compare
if request.META['CONTENT_TYPE'].lower().startswith("application/json"):
if request.META.get('CONTENT_TYPE','').lower().startswith("application/json"):
cloned_request = copy.copy(request)
cloned_request.POST = cloned_request.POST.copy()
cloned_request.POST.update(json.loads(request.body))