related_categories

Issue #904 new
Former user created an issue

related_categories is not discussed in the documentation or used in the code. It can only be assigned to in the admin.

class Category(models.Model): . . . related_categories = models.ManyToManyField('self', blank=True, null=True, verbose_name=_('Related Categories'), related_name='related_categories') . . .

I have requirements that are not possible with the current category implementation:

1) I need a particular category to appear under more than one heading in the category tree. (I can create duplicate categories as long as the slugs are different; but, this is not what I need.) I want to assign the set of products to a category once, and if I need that category to appear again in another part of the tree, the set of assigned products should be automatically carried along.

Men's Jewelry Tie Tacks

Gifts For Him Tie Tacks

2) I need the capability to select a set of products which are defined by the intersection of two or more categories. If I define the categories "Gold Jewelry", "Rings", and "$40 - to $49.99". I need the capability to select "Rings" and have all rings displayed, then to select "Gold Jewelry" and have the set of rings filtered to show only gold rings, then to select "$40 - to $49.99" and have the set of gold rings filtered to show only gold rings priced from $40 to $49.99.

I see no defined way to do this.

Comments (1)

  1. Hynek Cernoch

    Documentation to related categories - Yes

    Requirements 1 and 2 - No
    I do similar things without changing Satchmo.
    Better is one type of overhead for one user than other type for all users.

  2. Log in to comment