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

Conversation

@ozon-uk
Copy link

@ozon-uk ozon-uk commented Dec 11, 2021

To have REST API for our project, necessary serializers and viewsets added to the following apps

  • Baskets
  • Customers
  • Orders
  • Payments
  • Products

Router registrations for URLs made
README.md updated


from baskets.models import Basket, BasketItem

#Basket Filter

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.

Copy link

@eibrahimarisoy eibrahimarisoy left a 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()

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()
Copy link
Owner

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()
Copy link
Owner

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?

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.

5 participants