Avoid deprecation warnings concerning django.db.models.loading and django.contrib.admin.util