Skip to content

Commit c3997e0

Browse files
committed
Add filters file to handle filtering
1 parent eeb6b30 commit c3997e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DjangoEcommerceApp/filters.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import django_filters
2+
from DjangoEcommerceApp.models import Products
3+
4+
class ProductFilter(django_filters.FilterSet):
5+
class Meta:
6+
model = Products
7+
fields = ['product_name' ,'brand', 'product_max_price', 'product_discount_price']

0 commit comments

Comments
 (0)