Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Conversation

@Gundwane21
Copy link

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.

@Gundwane21 Gundwane21 changed the title all filters serializers and views are added, registered to router at Kerem Serttas hw3 Dec 11, 2021
Copy link

@oguzhancvdr oguzhancvdr left a 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

"""
Basket Models Filter
"""
status = filters.CharFilter(label=_("Status"))
Copy link
Owner

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?


class Meta:
model = BasketItem
fields = ("basket", "product", "quantity", "price",)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id eklememizde fayda var.


class ShippingAddressFilter(filters.FilterSet):
full_name = filters.CharFilter(label=_("Full Name"))
city = CityFilter
Copy link
Owner

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?

@Gundwane21
Copy link
Author

Code is edited following the instructors feedbacks. Problems are resolved. The following changes can be found in the following commit: 178fd14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants