Use functools.update_wrapper for Django 1.6+ / Python 2.5+