update for django1.4