Projects and Tribes "Could not determine relationship on related name topics" for SVN 0.7.0dev

2 views
Skip to first unread message

Dave

unread,
Jan 13, 2009, 5:38:06 PM1/13/09
to Pinax Users
I have everything else working great. But it seems that both Projects
and Tribes can not find topics.

The error is:

Could not determine relationship on related name topics

Pinax 0.7
Django Trunk 9733

Any suggestions:

See the errors here: http://pinax.purebluedesign.com/tribes/ and here:
http://pinax.purebluedesign.com/projects/

Thanks,
Dave

Mitch Chapman

unread,
Jan 13, 2009, 7:44:28 PM1/13/09
to Pinax Users

On Jan 13, 3:38 pm, Dave <dave.mer...@gmail.com> wrote:
> I have everything else working great. But it seems that both Projects
> and Tribes can not find topics.
>
> The error is:
>
> Could not determine relationship on related name topics
>
> Pinax 0.7
> Django Trunk 9733
>

Just wanted to note that the issue was recorded yesterday. One
workaround is to use Django 1.0.2:
http://code.google.com/p/django-hotclub/issues/detail?id=146


> Any suggestions:
>
> See the errors here:http://pinax.purebluedesign.com/tribes/and here:http://pinax.purebluedesign.com/projects/
>
> Thanks,
> Dave

Eric Florenzano

unread,
Jan 14, 2009, 4:49:25 AM1/14/09
to Pinax Users
Thanks for the error report guys. I'll look into what has changed and
make the necessary adjustments to django-things.

For the record, I've been working on a parallel branch of the django-
things sourcecode which should clean it up and make it clearer, and
this bug is the last straw that will make me finish up my work on
that.

Thanks,
Eric Florenzano

Mitch Chapman

unread,
Jan 15, 2009, 12:38:13 AM1/15/09
to Pinax Users
On Jan 14, 2:49 am, Eric Florenzano <flo...@gmail.com> wrote:
> Thanks for the error report guys.  I'll look into what has changed and
> make the necessary adjustments to django-things.
>
> For the record, I've been working on a parallel branch of the django-
> things sourcecode which should clean it up and make it clearer, and
> this bug is the last straw that will make me finish up my work on
> that.
>
> Thanks,
> Eric Florenzano

In case it's of any use, this small patch was enough to get me running
again, with Pinax trunk and Django trunk:

===================================================================
--- apps/external_apps/things/fields.py (revision 46)
+++ apps/external_apps/things/fields.py (working copy)
@@ -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)

>
> On Jan 13, 4:44 pm, Mitch Chapman <mchapman87...@gmail.com> wrote:
>
> > On Jan 13, 3:38 pm, Dave <dave.mer...@gmail.com> wrote:
>
> > > I have everything else working great. But it seems that both Projects
> > > and Tribes can not find topics.
>
> > > The error is:
>
> > > Could not determine relationship on related name topics
>
> > > Pinax 0.7
> > > Django Trunk 9733
>
> > Just wanted to note that the issue was recorded yesterday.  One
> > workaround is to use Django 1.0.2:http://code.google.com/p/django-hotclub/issues/detail?id=146
>
> > > Any suggestions:
>
> > > See the errors here:http://pinax.purebluedesign.com/tribes/andhere:http://pinax.pureblued...
>
> > > Thanks,
> > > Dave

Dave

unread,
Feb 10, 2009, 10:18:13 PM2/10/09
to Pinax Users
That is a great fix Mitch. Thanks.
Reply all
Reply to author
Forward
0 new messages