I have this working locally - it needs a tiny but non-trivial patch in
Mezzanine to support search fields across model relations, which first came
up as an issue couple weeks ago on the mailing list I think.

So with that in place we can define on the Product model:

search_fields = {"variations__sku": 100}

and Mezzanine's search will merge all the content+sku fields all together:

>>> Product.objects.get_search_fields()
{u'content': 1, u'title': 5, u'variations__sku': 100, u'keywords_string':
10}

Will push up Mezzanine/Cartridge changes later today.


On Tue, Mar 11, 2014 at 4:31 AM, Eduardo Rivas <[email protected]>wrote:

> Hi everybody. Quick question: is it possible to search Cartridge products
> by SKU? According to my tests, it isn't. Could you offer any pointers on
> what steps to take to make it work? Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to