diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-21 11:07:15 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-21 11:07:15 +0300 |
commit | 0942ce26e1341c25afd3a4addbc1adea6d5530f7 (patch) | |
tree | 0d06fb1c53491f4d4402c54910f59a6af5fc4e9e | |
parent | 4e7df49fc881793cb34629b8338387db330b1310 (diff) | |
download | Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.tar.gz Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.tar.bz2 Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.zip |
Cleanup
-rw-r--r-- | requirements.pip | 2 | ||||
-rw-r--r-- | servo/models/product.py | 3 |
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, |