Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-11 Thread Stephen McDonald
Here's search_fields across relations in Mezzanine:

https://github.com/stephenmcd/mezzanine/commit/a25927b1e4f8aaeaf6a7b85f6cd6d59212024627

And here's searchable variation skus in Cartridge:

https://github.com/stephenmcd/cartridge/commit/d00228a11e66313c5b06bccfde035b442b8366c4

I've no ETA for releases other than soon.


On Tue, Mar 11, 2014 at 1:46 PM, Eduardo Rivas jerivasmel...@gmail.comwrote:

 Awesome! One more reason to look forward to the next Mezzanine release :-)

 --
 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 mezzanine-users+unsubscr...@googlegroups.com.
 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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-11 Thread Sam Kingston
Steve, didn't we fix this in cartridge/#170 and mezzanine/#947 ? 

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-11 Thread Stephen McDonald
Sam - related not not the same, those previous changes were for admin
search provided by Django, the latest changes are for front-end search
provided by Mezzanine.


On Wed, Mar 12, 2014 at 9:31 AM, Sam Kingston s...@sjkwi.com.au wrote:

 Steve, didn't we fix this in cartridge/#170 and mezzanine/#947 ?

 --
 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 mezzanine-users+unsubscr...@googlegroups.com.
 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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-10 Thread Stephen McDonald
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 jerivasmel...@gmail.comwrote:

 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 mezzanine-users+unsubscr...@googlegroups.com.
 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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Cartridge: search by product SKU

2014-03-10 Thread Eduardo Rivas
Awesome! One more reason to look forward to the next Mezzanine release :-)

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.