Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def metadata_xml(request, doi):
"""
View displays datacite information
for given DOI.
"""
data = Data.objects.get(doi__slug=doi)
return HttpResponse(metadata_xml_string(data))