[mezzanine-users] Re: Orderable for Products and Variations?

2014-03-13 Thread Lucian Corduneanu
Here is another hack, but I'm sure I can't win any prize like Sam did, isn't it? :) Use `publish_date` field as default sort, if you want want some kind of order, you can control. My specific case was to shuffle all the product position once in a while. Here is my settings.py config for defaul

[mezzanine-users] Re: Orderable for Products and Variations?

2014-03-13 Thread Lucian Corduneanu
Here is another hack, but I'm sure I can win any prize like Sam did, isn't it? :) Use `publish_date` field as default sort, if you want want some kind of order, you can control. My specific case was to shuffle all the product position once in a while. Here is my settings.py config for default

Re: [mezzanine-users] Using a foreign key in Model search_fields?

2014-03-11 Thread Lucian Corduneanu
Nice :) Thank you! > -- 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.goo

[mezzanine-users] Re: Best way to show user-specific info?

2014-03-08 Thread Lucian Corduneanu
I'm also a beginner in python/django/mezzanine world, but here's what I did, in a kind of a similar scenario. I'm using cartridge and my products are from different vendors, therefore I injected a custom field

[mezzanine-users] Re: Best way to show user-specific info?

2014-03-08 Thread Lucian Corduneanu
You may also want to have Product class inheriting mezzanin's Ownable (see: http://mezzanine.jupo.org/docs/packages.html?highlight=ownable#mezzanine.core.models.Ownable). if you use Eduardo's approach. -- You received this message because you are subscribed to the Google Groups "Mezzanine Use

[mezzanine-users] Re: Using a foreign key in Model search_fields?

2014-03-04 Thread Lucian Corduneanu
I have the exact same problem. Stephen is there any other solution different from just copying it to keywords/description or even one custom text field? (redundant) However this may slightly increase DB storage, but in terms of performance it will be a bit faster, not having to join the extra ta

[mezzanine-users] SearchableManager.search returns only list?

2014-03-03 Thread Lucian Corduneanu
Hi, I've been reading the docs from http://mezzanine.jupo.org/docs/search-engine.html There is a note saying: "search method returns a Django queryset", thus I should chain a filter() or order_by(). Product.objects.search(query).filter(vendor__id=66).order_by("-publish_date"). I'm using mezza