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. How might I do this using
related_categories? Is there a better way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---