fixing issue with dj 1.7+ migrations