A workaround of django bug #20889
Logger for query dict