rename imported function for django < 1.7