[mezzanine-users] Figuring out how to implement user-defined product sort order in Cartridge

2016-04-07 Thread Sam W
So I end up doing a lot of weird stuff with Cartridge, but something a bit more normal has been plaguing me recently; user-defined sort orders for products in Cartridge's categories. Basically, clients' sales staff want to be able to manually drag and drop products in categories to change their

Re: [mezzanine-users] Figuring out how to implement user-defined product sort order in Cartridge

2016-04-07 Thread Danny
On 8 April 2016 at 13:21, Sam W wrote: > So I end up doing a lot of weird stuff with Cartridge, but something a bit > more normal has been plaguing me recently; user-defined sort orders for > products in Cartridge's categories. > > Basically, clients' sales staff want to be able to manually drag

Re: [mezzanine-users] Figuring out how to implement user-defined product sort order in Cartridge

2016-04-07 Thread Eduardo Rivas
I've used Django admin sortable (https://github.com/iambrandontaylor/django-admin-sortable) to add drag-n-drop ordering to models that are not inlines. It adds a new button to the list display where you can do the sorting. -- You received this message because you are subscribed to the Google G

Re: [mezzanine-users] Figuring out how to implement user-defined product sort order in Cartridge

2016-06-08 Thread Sam
Thanks for the help, guys. Sorry about taking a long time to respond, I got pulled onto some other tasks. They wanted to order the products per-category, so I ended up using django-sortedm2m and migrating the product-category relation to a sorted m2m. I then had to modify the page processor so it