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 /servo/models | |
parent | 4e7df49fc881793cb34629b8338387db330b1310 (diff) | |
download | Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.tar.gz Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.tar.bz2 Servo-0942ce26e1341c25afd3a4addbc1adea6d5530f7.zip |
Cleanup
Diffstat (limited to 'servo/models')
-rw-r--r-- | servo/models/product.py | 3 |
1 files changed, 3 insertions, 0 deletions
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, |