Commits

svevang committed 20c1ef3

set a X-datamoose-figure header

  • Participants
  • Parent commits 1276192

Comments (0)

Files changed (1)

datamoose/views.py

   else:
     tmpl_loc = data_output.parent_template
   t = loader.get_template(tmpl_loc)
-  return HttpResponse(t.render(c), mimetype=data_output.mime_type)
+  resp = HttpResponse(t.render(c), mimetype=data_output.mime_type)
+  resp['X-datamoose-figure'] = datamoose.slug
+  return resp
 
 def datasource_add_form(request):
   'ajax view that supplies a form fragment for the datamoose creation process'