from rest_framework import serializers

from apps.broadcasts.models import Broadcast, Series
from apps.games.models import Game


class BroadcastSerializer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Broadcast


class SeriesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Series


class GameSerializer(serializers.ModelSerializer):
    class Meta:
        model = Game

from rest_framework import serializers

from apps.broadcasts.models import Broadcast, Raid, Series
from apps.games.models import Game


class BroadcastSerializer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Broadcast


class RaidSerializer(serializers.ModelSerializer):
    class Meta:
        model = Raid


class SeriesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Series


class GameSerializer(serializers.ModelSerializer):
    class Meta:
        model = Game

Add Raid to the API.
Add Raid to the API.

  from rest_framework import serializers
  
- from apps.broadcasts.models import Broadcast, Series
+ from apps.broadcasts.models import Broadcast, Raid, Series
  from apps.games.models import Game
  
  
  class BroadcastSerializer(serializers.ModelSerializer):
      class Meta:
          depth = 1
          model = Broadcast
+ 
+ 
+ class RaidSerializer(serializers.ModelSerializer):
+     class Meta:
+         model = Raid
  
  
  class SeriesSerializer(serializers.ModelSerializer):
      class Meta:
          model = Series
  
  
  class GameSerializer(serializers.ModelSerializer):
      class Meta:
          model = Game
  
Add Raid to the API.
## Code Before:
from rest_framework import serializers

from apps.broadcasts.models import Broadcast, Series
from apps.games.models import Game


class BroadcastSerializer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Broadcast


class SeriesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Series


class GameSerializer(serializers.ModelSerializer):
    class Meta:
        model = Game

## Instruction:
Add Raid to the API.
## Code After:
from rest_framework import serializers

from apps.broadcasts.models import Broadcast, Raid, Series
from apps.games.models import Game


class BroadcastSerializer(serializers.ModelSerializer):
    class Meta:
        depth = 1
        model = Broadcast


class RaidSerializer(serializers.ModelSerializer):
    class Meta:
        model = Raid


class SeriesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Series


class GameSerializer(serializers.ModelSerializer):
    class Meta:
        model = Game
