On Wed, 2008-02-20 at 16:25 -0800, cesco wrote: > Hi, > > I'm using the latest version of the django tagging application (rev. > 132) and I'm having problems with the get_by_model method of the > TaggedItem manager. > > Say I have a QuerySet1 generated as follow: > QuerySet1 = TaggedItem.objects.get_by_model(MyModel, 'tag1') > and a QuerySet2 generated as follow: > QuerySet2 = TaggedItem.objects.get_by_model(MyModel, 'tag2') > > If at this point I try to '&' the two query sets as in: > QuerySet3 = QuerySet1 & QuerySet2 > then I get the following error: > "ambiguous column name: tagging_taggeditem.object_id"
So the SQL that is being constructed by the joined queryset isn't valid. I'm almost certain the answer to this is "it's fixed in queryset-refactor, so will one day be fixed in trunk." > Do you have any idea of why I'm getting this error and how I could > solve the problem? Pull the results back into Python and merge them manually. Malcolm -- If it walks out of your refrigerator, LET IT GO!! http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---