Author: floguy
Date: Thu Jan 15 00:31:17 2009
New Revision: 47
Modified:
trunk/things/fields.py
Log:
Fixed a bug that cropped up due to the latest version of Django. Thanks,
Mitch Chapman!
Modified: trunk/things/fields.py
==============================================================================
--- trunk/things/fields.py (original)
+++ trunk/things/fields.py Thu Jan 15 00:31:17 2009
@@ -123,8 +123,8 @@
children = related_manager.all().query.where.children
related_column_name = None
for child in children:
- if child[0] == related_table:
- related_column_name = child[1]
+ if child[0][0] == related_table:
+ related_column_name = child[0][1]
break
if related_column_name is None:
raise ValueError("Could not determine relationship on
related name %s" % self.field_name)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---