from rest_framework import serializers

from ..models import Board


class BoardSerializer(serializers.ModelSerializer):
    last_num = serializers.ReadOnlyField()

    class Meta:
        model = Board

        exclude = ('id', 'category', 'trip_required', 'is_hidden')
        lookup_field = 'board'
        extra_kwargs = {
            'url': {'lookup_field': 'board'}
        }

78c672f4c14db52271db4ba03ce0d3f131eb700f
<mask token>

<mask token>


class BoardSerializer(serializers.ModelSerializer):
    <mask token>


    class Meta:
        model = Board
        exclude = 'id', 'category', 'trip_required', 'is_hidden'
        lookup_field = 'board'
        extra_kwargs = {'url': {'lookup_field': 'board'}}

<mask token>


class BoardSerializer(serializers.ModelSerializer):
    last_num = serializers.ReadOnlyField()


    class Meta:
        model = Board
        exclude = 'id', 'category', 'trip_required', 'is_hidden'
        lookup_field = 'board'
        extra_kwargs = {'url': {'lookup_field': 'board'}}

from rest_framework import serializers
from ..models import Board


class BoardSerializer(serializers.ModelSerializer):
    last_num = serializers.ReadOnlyField()


    class Meta:
        model = Board
        exclude = 'id', 'category', 'trip_required', 'is_hidden'
        lookup_field = 'board'
        extra_kwargs = {'url': {'lookup_field': 'board'}}

from rest_framework import serializers

from ..models import Board


class BoardSerializer(serializers.ModelSerializer):
    last_num = serializers.ReadOnlyField()

    class Meta:
        model = Board

        exclude = ('id', 'category', 'trip_required', 'is_hidden')
        lookup_field = 'board'
        extra_kwargs = {
            'url': {'lookup_field': 'board'}
        }
