-
Notifications
You must be signed in to change notification settings - Fork 30
Kerem Serttas hw3 #78
base: main
Are you sure you want to change the base?
Conversation
oguzhancvdr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Ideally, your commits should be seperated for each grouped process.
- for example: you created an endpoint for baskets app so just commit changes related with baskets. Thanks to it, your code reviewers can easliy inspect your changes
ecommerce/baskets/filters.py
Outdated
| """ | ||
| Basket Models Filter | ||
| """ | ||
| status = filters.CharFilter(label=_("Status")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bu satiri neden ekleme ihtiyaci hissettik?
ecommerce/baskets/serializers.py
Outdated
|
|
||
| class Meta: | ||
| model = BasketItem | ||
| fields = ("basket", "product", "quantity", "price",) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id eklememizde fayda var.
ecommerce/orders/filters.py
Outdated
|
|
||
| class ShippingAddressFilter(filters.FilterSet): | ||
| full_name = filters.CharFilter(label=_("Full Name")) | ||
| city = CityFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boyle bir kullanimi nereden ogrendik?
|
Code is edited following the instructors feedbacks. Problems are resolved. The following changes can be found in the following commit: 178fd14 |
For each app such as baskets, customers, orders, payments ; their corresponding filter, serializer and view functionality is added. In addition, all these are registered to router to redirect from /api.