Comment #5 on issue 146 by adamsc: 'things' in Pinax 0.5.1 breaks with  
recent django trunk (r9729)
http://code.google.com/p/django-hotclub/issues/detail?id=146

Here's a patch I should have submitted earlier: it's probably easiest just  
to patch locally until django-things is
fixed but it could be monkey-patched after detecting which version of the  
child table data structure is
returned.

Index: apps/external_apps/things/fields.py
===================================================================
--- apps/external_apps/things/fields.py (revision 47)
+++ apps/external_apps/things/fields.py (working copy)
@@ -123,8 +123,9 @@
              children = related_manager.all().query.where.children
              related_column_name = None
              for child in children:
-                if child[0][0] == related_table:
-                    related_column_name = child[0][1]
+                # BUG: This data-structure is in flux between Django-trunk  
and django-things trunk:
+                if child[0] == related_table:
+                    related_column_name = child[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 listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to