Django

Code

Changeset 1960

Show
Ignore:
Timestamp:
01/14/06 18:04:24 (3 years ago)
Author:
adrian
Message:

magic-removal: Fixed #1197: Fixed validation error message in django-admin. Thanks, Andreas

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/django/core/management.py

    r1921 r1960  
    463463        INSTALLED_APPS += ('django.contrib.contenttypes',) 
    464464        # Install django.contrib.contenttypes. The tests require Packages to 
    465         # to be installed. This ought to be fixed (tests should probably  
     465        # to be installed. This ought to be fixed (tests should probably 
    466466        # install their dependencies) 
    467467        contenttypes_app = models.get_app('contenttypes') 
     
    527527    num_errors = get_validation_errors(s) 
    528528    if num_errors: 
    529         sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % mod_name) 
     529        sys.stderr.write("Error: %s couldn't be installed, because there were errors in your model:\n" % app_name) 
    530530        s.seek(0) 
    531531        sys.stderr.write(s.read())