-
Notifications
You must be signed in to change notification settings - Fork 30
Ozon uk homework 3 #79
base: main
Are you sure you want to change the base?
Conversation
…added, viewsets for stock and price added to views
…r restframework done, pagination added
|
|
||
| from baskets.models import Basket, BasketItem | ||
|
|
||
| #Basket Filter |
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.
Bence bu ve bunun gibi comment'ler kaldirilabilir cunku class isminden anlayabilecegimizden baska extra bir bilgi vermiyor.
eibrahimarisoy
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.
DetailedSerializer tanımlamalarını kalıtım yoluyla oluştururken fieldsda tanınımlı olmayan alanları eklemişsin.
Bu alanları tekrar fieldsa eklemen gerekli.
The field 'products' was declared on serializer PriceDetailedSerializer, but has not been included in the 'fields' option.
böyle bir hata alırsın.
|
|
||
| # Basket Detailed Serializer - nested serializer | ||
| class BasketDetailedSerializer(BasketSerializer): | ||
| customers = CustomerSerializer() |
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.
customers yanlış olmuş customer olmalı
|
|
||
| # Stock Detailed Serializer - nested serializer | ||
| class StockDetailedSerializer(StockSerializer): | ||
| products = ProductSerializer() |
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.
products seklinde bir fieldimiz yok sanki?
|
|
||
| # Price Detailed Serializer - nested serializer | ||
| class PriceDetailedSerializer(PriceSerializer): | ||
| products = ProductSerializer() |
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.
products seklinde bir fieldimiz yok sanki?
To have REST API for our project, necessary serializers and viewsets added to the following apps
Router registrations for URLs made
README.md updated