Skip to content

Commit

Permalink
Merge branch 'develop' into MM/197/mobile_view
Browse files Browse the repository at this point in the history
  • Loading branch information
u17260044 authored Oct 26, 2023
2 parents ca21e33 + d727775 commit 692fa0f
Show file tree
Hide file tree
Showing 62 changed files with 3,685 additions and 285 deletions.
2 changes: 2 additions & 0 deletions api/custom_profile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def get_followed_seller_details(request):
for seller in followed_seller
]
return Response(res)
else:
return Response([])

else:
raise Exception("User is seller")
Expand Down
4 changes: 2 additions & 2 deletions api/inventory/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def getProd(request):
sort_fields = {
"name": "product__name",
"-name": "-product__name",
"date": "-created_at",
"-date": "created_at",
"date": "created_at",
"-date": "-created_at",
"price": "price",
"-price": "-price",
"discount": "discount",
Expand Down
722 changes: 722 additions & 0 deletions api/product/management/commands/products.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions api/product/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Product(models.Model):
("sports and outdoors", "Sports and Outdoors"),
("toys and games", "Toys and Games"),
("books", "Books"),
("food","Food")
]

id = models.AutoField(primary_key=True)
Expand Down
Loading

0 comments on commit 692fa0f

Please sign in to comment.