﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11380	missed error description and line (and file) which contains it [TIP]	pedromagnus	nobody	"I had the following output for validating my aplication:
{{{
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet
Traceback (most recent call last):
  File ""manage.py"", line 11, in <module>
    execute_manager(settings)
  File ""/var/lib/python-support/python2.6/django/core/management/__init__.py"", line 340, in execute_manager
    utility.execute()
  File ""/var/lib/python-support/python2.6/django/core/management/__init__.py"", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 219, in execute
    output = self.handle(*args, **options)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 348, in handle
    return self.handle_noargs(**options)
  File ""/var/lib/python-support/python2.6/django/core/management/commands/validate.py"", line 9, in handle_noargs
    self.validate(display_num_errors=True)
  File ""/var/lib/python-support/python2.6/django/core/management/base.py"", line 246, in validate
    num_errors = get_validation_errors(s, app)
  File ""/var/lib/python-support/python2.6/django/core/management/validation.py"", line 95, in get_validation_errors
    for r in rel_opts.get_all_related_objects():
  File ""/var/lib/python-support/python2.6/django/db/models/options.py"", line 338, in get_all_related_objects
    self._fill_related_objects_cache()
  File ""/var/lib/python-support/python2.6/django/db/models/options.py"", line 367, in _fill_related_objects_cache
    if f.rel and not isinstance(f.rel.to, str) and self == f.rel.to._meta:
AttributeError: 'unicode' object has no attribute '_meta'
}}}

My app has several subapps and models, so there's no way I could locate the error with this output. By the way, someone knows why the validation is failing by? :P
Sorry for my bad english)
Greetings
Pedro"		closed	Uncategorized	1.0		invalid	error, _meta, foreignkey		Unreviewed	0	0	0	0	0	0
