# Framework
from rest_framework import serializers

# Models
from headlineScraper.models.diff import Diff
from headlineScraper.serializers.change import ChangeSerializer


class DiffSerializer(serializers.ModelSerializer):
    title_changes = ChangeSerializer(many=True)
    sub_title_changes = ChangeSerializer(many=True)

    class Meta:
        model = Diff
        exclude = ('headline',)
        ordering = ('id',)

f1d3485131c44b732a2efb97cd0fd734bf46e60b
<mask token>

<mask token>


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


    class Meta:
        model = Diff
        exclude = 'headline',
        ordering = 'id',

<mask token>


class DiffSerializer(serializers.ModelSerializer):
    title_changes = ChangeSerializer(many=True)
    sub_title_changes = ChangeSerializer(many=True)


    class Meta:
        model = Diff
        exclude = 'headline',
        ordering = 'id',

from rest_framework import serializers
from headlineScraper.models.diff import Diff
from headlineScraper.serializers.change import ChangeSerializer


class DiffSerializer(serializers.ModelSerializer):
    title_changes = ChangeSerializer(many=True)
    sub_title_changes = ChangeSerializer(many=True)


    class Meta:
        model = Diff
        exclude = 'headline',
        ordering = 'id',

# Framework
from rest_framework import serializers

# Models
from headlineScraper.models.diff import Diff
from headlineScraper.serializers.change import ChangeSerializer


class DiffSerializer(serializers.ModelSerializer):
    title_changes = ChangeSerializer(many=True)
    sub_title_changes = ChangeSerializer(many=True)

    class Meta:
        model = Diff
        exclude = ('headline',)
        ordering = ('id',)
