from rest_framework import serializers

from api.models import Auction, Bid, Comment

class AuctionModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Auction
        fields = ('user', 'title', 'description', 'img_url', 'base_price')

class BidModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Bid
        fields = ('user', 'auction', 'amount_offered')

class CommentModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = ('user', 'auction', 'message')

288da5d6dae25e87076cdd455c4ecceb5bbbb5e0
<mask token>


class CommentModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = 'user', 'auction', 'message'

<mask token>


class BidModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Bid
        fields = 'user', 'auction', 'amount_offered'


class CommentModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = 'user', 'auction', 'message'

<mask token>


class AuctionModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Auction
        fields = 'user', 'title', 'description', 'img_url', 'base_price'


class BidModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Bid
        fields = 'user', 'auction', 'amount_offered'


class CommentModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = 'user', 'auction', 'message'

from rest_framework import serializers
from api.models import Auction, Bid, Comment


class AuctionModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Auction
        fields = 'user', 'title', 'description', 'img_url', 'base_price'


class BidModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Bid
        fields = 'user', 'auction', 'amount_offered'


class CommentModelSerializer(serializers.ModelSerializer):


    class Meta:
        model = Comment
        fields = 'user', 'auction', 'message'

from rest_framework import serializers

from api.models import Auction, Bid, Comment

class AuctionModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Auction
        fields = ('user', 'title', 'description', 'img_url', 'base_price')

class BidModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Bid
        fields = ('user', 'auction', 'amount_offered')

class CommentModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Comment
        fields = ('user', 'auction', 'message')
