aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--requirements.pip2
-rw-r--r--servo/models/product.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/requirements.pip b/requirements.pip
index 98d4d6e..b5f06dd 100644
--- a/requirements.pip
+++ b/requirements.pip
@@ -1,11 +1,11 @@
django
+django-mptt
django-countries
django-bootstrap3
djangorestframework
babel
markdown
python-memcached
-django-mptt
psycopg2
pil
reportlab
diff --git a/servo/models/product.py b/servo/models/product.py
index a92e750..5d97ae3 100644
--- a/servo/models/product.py
+++ b/servo/models/product.py
@@ -546,6 +546,9 @@ class ProductCategory(MPTTModel):
objects = TreeManager()
def get_products(self):
+ """
+ Returns products under this entire category branch
+ """
return Product.objects.filter(
categories__lft__gte=self.lft,
categories__rght__lte=self.rght,