6 lines
179 B
Python
6 lines
179 B
Python
from apps.product.models import Product as ProductModel
|
|
|
|
|
|
def get_all_products() -> ProductModel:
|
|
return ProductModel.objects.filter(is_enable=True, category__is_enable=True)
|