category_view to be filtered by (current) site

Issue #831 resolved
Andre Miras
created an issue

It should be possible to have two categories with the same slug but different site_id and being able to access the category_view.

I'm running 6 eStore instances (built on top of Satchmo 0.8.1) for production use they all use the same database. I would like to have same slug names throughout my instances. However when I have two categories with the same slug and different site_id the category_view trigger a MultipleObjectsReturned error (traceback attached).

This is already fully implemented and part of the core code for product view. It's used in the view product.views.get_product

It's partially implemented in the Category model but not being used in the product.views.category_view

Find attached a patch for this ticket.

Comments (2)

  1. Log in to comment