1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Changed admin view to check for LogEntry._meta.installed rather than ImportError, due to change in [2655]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-11 02:36:40 +00:00
parent 8792dceb74
commit 16ddb21841

View File

@ -17,10 +17,9 @@ from django.utils.html import escape
from django.utils.text import capfirst, get_text_list
import operator
try:
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
except ImportError:
raise ImproperlyConfigured, "You don't have 'django.contrib.admin' in INSTALLED_APPS."
if not LogEntry._meta.installed:
raise ImproperlyConfigured, "You'll need to put 'django.contrib.admin' in INSTALLED_APPS before you can use the admin application."
# The system will display a "Show all" link on the change list only if the
# total result count is less than or equal to this setting.