Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed a couple of deprecation warnings

  • Loading branch information...
commit 6ab58e3605834e1372ebc4e7f690946d070e7f91 1 parent 056be43
@akaariai akaariai authored
2  django/contrib/admin/
@@ -3,7 +3,7 @@
from itertools import chain
-from django.contrib.admin.util import get_fields_from_path, NotRelationField
+from django.contrib.admin.utils import get_fields_from_path, NotRelationField
from django.core import checks
from django.db import models
from django.db.models.fields import FieldDoesNotExist
4 django/contrib/contenttypes/
@@ -2,15 +2,15 @@
from __future__ import unicode_literals
from django.utils import six
+from django.apps import apps
def check_generic_foreign_keys(**kwargs):
from .generic import GenericForeignKey
- from django.db import models
errors = []
fields = (obj
- for cls in models.get_models()
+ for cls in apps.get_models()
for obj in six.itervalues(vars(cls))
if isinstance(obj, GenericForeignKey))
for field in fields:

0 comments on commit 6ab58e3

Please sign in to comment.
Something went wrong with that request. Please try again.