Ticket #14104: traceback

File traceback, 3.2 KB (added by Evandro Myller, 14 years ago)

full traceback

Line 
1Traceback (most recent call last):
2 File "./manage.py", line 11, in <module>
3 execute_manager(settings)
4 File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
5 utility.execute()
6 File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
7 self.fetch_command(subcommand).run_from_argv(self.argv)
8 File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 191, in run_from_argv
9 self.execute(*args, **options.__dict__)
10 File "/usr/local/lib/python2.6/dist-packages/django/core/management/base.py", line 220, in execute
11 output = self.handle(*args, **options)
12 File "/usr/local/lib/python2.6/dist-packages/south/management/commands/migrate.py", line 109, in handle
13 ignore_ghosts = ignore_ghosts,
14 File "/usr/local/lib/python2.6/dist-packages/south/migration/__init__.py", line 202, in migrate_app
15 success = migrator.migrate_many(target, workplan, database)
16 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 221, in migrate_many
17 result = migrator.__class__.migrate_many(migrator, target, migrations, database)
18 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 292, in migrate_many
19 result = self.migrate(migration, database)
20 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 125, in migrate
21 result = self.run(migration)
22 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 99, in run
23 return self.run_migration(migration)
24 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 81, in run_migration
25 migration_function()
26 File "/usr/local/lib/python2.6/dist-packages/south/migration/migrators.py", line 57, in <lambda>
27 return (lambda: direction(orm))
28 File "{my migration script (South based)}", line 19, in forwards
29 posts.update(campaign=F('topic__campaign'))
30 File "/usr/local/lib/python2.6/dist-packages/django/db/models/query.py", line 467, in update
31 rows = query.get_compiler(self.db).execute_sql(None)
32 File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 861, in execute_sql
33 cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
34 File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 717, in execute_sql
35 sql, params = self.as_sql()
36 File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/compiler.py", line 835, in as_sql
37 val = SQLEvaluator(val, self.query, allow_joins=False)
38 File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/expressions.py", line 12, in __init__
39 self.expression.prepare(self, query, allow_joins)
40 File "/usr/local/lib/python2.6/dist-packages/django/db/models/expressions.py", line 110, in prepare
41 return evaluator.prepare_leaf(self, query, allow_joins)
42 File "/usr/local/lib/python2.6/dist-packages/django/db/models/sql/expressions.py", line 35, in prepare_leaf
43 raise FieldError("Joined field references are not permitted in this query")
44django.core.exceptions.FieldError: Joined field references are not permitted in this query
Back to Top