1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

magic-removal: updated (most) dependencies to reflect new location of django.models.core Package and ContentType.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans
2006-01-09 18:20:06 +00:00
parent 24f8e94563
commit 6cdb3c57d8
6 changed files with 8 additions and 8 deletions

View File

@@ -98,7 +98,7 @@ class Options:
def get_content_type_id(self):
"Returns the content-type ID for this object type."
if not hasattr(self, '_content_type_id'):
from django.models.core import ContentType
from django.contrib.contenttypes.models import ContentType
self._content_type_id = ContentType.objects.get_object(
python_module_name__exact=self.module_name,
package__label__exact=self.app_label).id