Updates import code that was deprecated in Django 1.6