Ticket #11034: 11034.diff

File 11034.diff, 580 bytes (added by timo, 6 years ago)

trivial patch

  • docs/ref/contrib/admin/actions.txt

     
    203203
    204204    def export_as_json(modeladmin, request, queryset):
    205205        response = HttpResponse(mimetype="text/javascript")
    206         serialize.serialize(queryset, stream=response)
     206        serializers.serialize(queryset, stream=response)
    207207        return response
    208208
    209209Generally, something like the above isn't considered a great idea. Most of the
Back to Top