update_wrapper for Django >= 1.6 with backward compatibility
update_wrapper change to functool