On Wed, 2008-03-26 at 15:08 -0400, Karen Tracey wrote: > On Wed, Mar 26, 2008 at 2:43 PM, J. Cliff Dyer <[EMAIL PROTECTED]> > wrote: > > On Wed, 2008-03-26 at 14:08 -0400, J. Cliff Dyer wrote: > > I've got a funky error when traversing a m2m relationship. > > > > TypeError: Cannot resolve keyword 'display' into field > > > > Code snippet and full traceback here: > http://dpaste.com/41417/ > > > > Anyone have any ideas where this is coming from? > > > > > > > In the same session as (and immediately after) my dpaste > above, I did > the following: > > >>> from django.db import connection as conn > >>> conn.queries > [{'time': '0.001', 'sql': 'SELECT > > `zeum_display`.`id`,`zeum_display`.`exhibit_id`,`zeum_display`.`title`,`zeum_display`.`slug_title`,`zeum_display`.`exposition`,`zeum_display`.`position`,`zeum_display`.`is_active`,`zeum_display`.`ctime`,`zeum_display`.`mtime`,`zeum_display`.`metadata`,`zeum_display`.`metadata_schema_id` > FROM `zeum_display` INNER JOIN `zeum_exhibit` AS `zeum_display__exhibit` ON > `zeum_display`.`exhibit_id` = `zeum_display__exhibit`.`id` WHERE > (`zeum_display`.`position` = 11 AND `zeum_display__exhibit`.`slug_title` = > davie)'}] > > I tried executing that SQL in a cursor, but somehow davie got > passed as > a column name instead of as a string (which raises an > OperationalError). > > I'm getting more and more confused. > > > > The "TypeError: Cannot resolve keyword 'display' into field" is hit > before any SQL is executed for the call that triggered it. I believe > this SQL SELECT is from the > "m.Display.objects.get(exhibit__slug_title='davie', position=11)" > which executed without error. > > More helpful to someone who might be able to track this down would be > your apps.cdla_app.zeum.models file. > > Karen >
Thanks. Models file at: http://dpaste.com/41448/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---