diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2014-01-20 13:11:27 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-01-20 13:12:15 +0200 |
| commit | 6ab58e3605834e1372ebc4e7f690946d070e7f91 (patch) | |
| tree | 727ebe34afc496c3a8bf5ee107674e04fd1b5452 /django/contrib/contenttypes | |
| parent | 056be4358de0e747f789e4a711ea5dd51749ab11 (diff) | |
Fixed a couple of deprecation warnings
Diffstat (limited to 'django/contrib/contenttypes')
| -rw-r--r-- | django/contrib/contenttypes/checks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/contenttypes/checks.py b/django/contrib/contenttypes/checks.py index 7b4ab81962..dcd3a58b9f 100644 --- a/django/contrib/contenttypes/checks.py +++ b/django/contrib/contenttypes/checks.py @@ -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: |
