feat: added search for products
This commit is contained in:
@@ -45,6 +45,7 @@ class ProductViewSet(ModelViewSet):
|
||||
IsAdminUser,
|
||||
ProductPermissions,
|
||||
)
|
||||
search_fields = ('name', )
|
||||
|
||||
def get_serializer_class(self):
|
||||
if self.action == "create":
|
||||
|
||||
Reference in New Issue
Block a user