From 3d293b51447c0ad9abb4ada7acf5ff81e94e72d0 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 15 Jan 2006 00:04:24 +0000 Subject: [PATCH] magic-removal: Fixed #1197: Fixed validation error message in django-admin. Thanks, Andreas git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1960 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index 5d38b7f5a4..4a8f71ac51 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -462,7 +462,7 @@ def init_minimal(): from django.conf.settings import INSTALLED_APPS INSTALLED_APPS += ('django.contrib.contenttypes',) # Install django.contrib.contenttypes. The tests require Packages to - # to be installed. This ought to be fixed (tests should probably + # to be installed. This ought to be fixed (tests should probably # install their dependencies) contenttypes_app = models.get_app('contenttypes') install(contenttypes_app) @@ -526,7 +526,7 @@ def install(app): s = StringIO() num_errors = get_validation_errors(s) if num_errors: - sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % mod_name) + sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % app_name) s.seek(0) sys.stderr.write(s.read()) sys.exit(1)