From 13edf04d6c1d3606580eb2ebe700a93198fea4d8 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 15 Dec 2005 00:01:51 +0000 Subject: [PATCH] magic-removal: Fixed bug in django.core.management.validate -- it used get_model_module git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1655 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/core/management.py b/django/core/management.py index 82e3d360f0..c4c4e34676 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -691,8 +691,7 @@ def get_validation_errors(outfile): try: f = opts.get_field(fn) except models.FieldDoesNotExist: - klass = opts.get_model_module().Klass - if not hasattr(klass, fn) or not callable(getattr(klass, fn)): + if not hasattr(mod, fn) or not callable(getattr(mod, fn)): e.add(opts, '"admin.list_display" refers to %r, which isn\'t a field or method.' % fn) else: if isinstance(f, models.ManyToManyField):