products variations being displayed as products

2 views
Skip to first unread message

rafael

unread,
May 9, 2011, 9:53:20 AM5/9/11
to Satchmo users
Hi everyone. I sent two emails to this satchmo users list, but it
seems they weren't aproved by the moderators..
Please let me know if I am asking in the wrong place.

I am having a problem with products variations.. In the latest version
of satchmo, after a fresh install, my variations are displayed as
products in the category list.. I don't thnk this is the expected
behaviour.. Does anyone has this problem?

thanks,

Rafael

rafael

unread,
May 11, 2011, 3:53:44 PM5/11/11
to Satchmo users
Debuging the code I found that a recent fix in models.py is what
created this bug

if variations:
slugs = qry.filter(site=self.site, active=True,
**kwargs).values_list('slug',flat=True)
return
Product.objects.filter(Q(productvariation__parent__product__slug__in =
slugs)|Q(slug__in = slugs))

If I return the code to the state before commit 2168 by Bruce Kroeze
the proper behaviour is achieved...

I am very new to django and also to satchmo code and I still don´t
understand well how it works, so maybe Bruce could help us sorting out
a third code line that corrects both bugs..

Thanks,

Rafael
Reply all
Reply to author
Forward
0 new messages